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.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9bec1829483f4f724c08afbe640e6d8383579348;p=ceph-ci.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 47e202aeb2f..1067465f122 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();