From 63ea50d647f5adf55d135052495abd8aa7a4c4c3 Mon Sep 17 00:00:00 2001 From: zhipeng li Date: Thu, 2 Dec 2021 06:40:00 -0500 Subject: [PATCH] rgw: add object null point judging when listing pubsub topics Fixs: https://tracker.ceph.com/issues/53464 Signed-off-by: zhipeng li (cherry picked from commit 9bec1829483f4f724c08afbe640e6d8383579348) --- src/rgw/rgw_sync_module_pubsub_rest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync_module_pubsub_rest.cc b/src/rgw/rgw_sync_module_pubsub_rest.cc index 9600a465dc88..1aa46e4c05dd 100644 --- a/src/rgw/rgw_sync_module_pubsub_rest.cc +++ b/src/rgw/rgw_sync_module_pubsub_rest.cc @@ -136,7 +136,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(); -- 2.47.3