correct pointer nullptr check

parent 4e89daf5
......@@ -2373,7 +2373,7 @@ MessageSizeCounts PointerReader::targetSize() const {
}
PointerType PointerReader::getPointerType() const {
if(pointer->isNull()) {
if(pointer == nullptr || pointer->isNull()) {
return PointerType::NULL_;
} else {
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