Fix for NTHistogram::isCompatible()
Correct null pointer check - logic was inverted
This commit is contained in:
@@ -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