diff --git a/src/util/DataTree.h b/src/util/DataTree.h index fe76138..10d7d21 100755 --- a/src/util/DataTree.h +++ b/src/util/DataTree.h @@ -303,7 +303,7 @@ public: template void get(T& scalar_out) { - if (getDataSize() < 0) { + if (getDataSize() == 0) { throw DataException("Cannot get() the scalar, DataElement is empty !"); }