Skip to content

Commit 5f6c6a6

Browse files
authored
Allow null pointers in ObjectMap during debugging (#1481)
1 parent 3711fee commit 5f6c6a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sst/core/serialization/objectMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ class ObjectMapFundamental : public ObjectMap
13001300
/**
13011301
Get the value of the object as a string
13021302
*/
1303-
virtual std::string get() override { return SST::Core::to_string(*addr_); }
1303+
virtual std::string get() override { return addr_ ? SST::Core::to_string(*addr_) : "nullptr"; }
13041304

13051305
/**
13061306
Returns true as object is a fundamental

0 commit comments

Comments
 (0)