From: zhipeng li Date: Thu, 2 Dec 2021 11:40:00 +0000 (-0500) Subject: rgw: add object null point judging when listing pubsub topics X-Git-Tag: v17.1.0~290^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44186%2Fhead;p=ceph.git rgw: add object null point judging when listing pubsub topics Fixs: https://tracker.ceph.com/issues/53464 Signed-off-by: zhipeng li --- diff --git a/src/rgw/rgw_sync_module_pubsub_rest.cc b/src/rgw/rgw_sync_module_pubsub_rest.cc index 47e202aeb2f8..1067465f1228 100644 --- a/src/rgw/rgw_sync_module_pubsub_rest.cc +++ b/src/rgw/rgw_sync_module_pubsub_rest.cc @@ -138,7 +138,7 @@ protected: if (s->init_state.url_bucket.empty()) { return nullptr; } - if (s->object->empty()) { + if (s->object == nullptr || s->object->empty()) { return new RGWPSListTopics_ObjStore(); } return new RGWPSGetTopic_ObjStore();