Fix for NTHistogram::isCompatible()
Correct null pointer check - logic was inverted
This commit is contained in:
1 parent
99f9e0429f
commit
db0d1e8f9e
1 file changed
+2
-2
@@ -154,11 +154,11 @@ bool NTHistogram::isCompatible(StructureConstPtr const &structure)
|
||||
}
|
||||
|
||||
field = structure->getField("alarm");
|
||||
if (!field.get() && !ntField->isAlarm(field))
|
||||
if (field.get() && !ntField->isAlarm(field))
|
||||
return false;
|
||||
|
||||
field = structure->getField("timeStamp");
|
||||
if (!field.get() && !ntField->isTimeStamp(field))
|
||||
if (field.get() && !ntField->isTimeStamp(field))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user