fix issue with null pointer check for DBR_ENUM

This commit is contained in:
Sinisa Veseli
2021-08-04 11:19:47 -05:00
parent deefe12491
commit 9a88e5e879

View File

@ -922,7 +922,7 @@ Status DbdToPv::putToDBD(
}
} else {
PVScalarPtr pvValue = pvStructure->getSubField<PVScalar>("value");
if(!pvValue) {
if(!pvValue && caValueType != DBR_ENUM) {
return Status(Status::STATUSTYPE_ERROR, string("DbdToPv::putToDBD logic error"));
}
switch(caValueType) {