correct pointer nullptr check

parent 4e89daf5
...@@ -2373,7 +2373,7 @@ MessageSizeCounts PointerReader::targetSize() const { ...@@ -2373,7 +2373,7 @@ MessageSizeCounts PointerReader::targetSize() const {
} }
PointerType PointerReader::getPointerType() const { PointerType PointerReader::getPointerType() const {
if(pointer->isNull()) { if(pointer == nullptr || pointer->isNull()) {
return PointerType::NULL_; return PointerType::NULL_;
} else { } else {
word* refTarget = nullptr; word* refTarget = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment