Fix wrong condition in DataTree

This commit is contained in:
vsonnier 2019-03-03 13:22:29 +01:00
parent 8b0d4c2449
commit 8dfc7503f2
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ public:
template<typename T, typename Dummy = int >
void get(T& scalar_out) {
if (getDataSize() < 0) {
if (getDataSize() == 0) {
throw DataException("Cannot get() the scalar, DataElement is empty !");
}