From 8dfc7503f2240356e47efff39b2fe6f2fd9d6457 Mon Sep 17 00:00:00 2001 From: vsonnier Date: Sun, 3 Mar 2019 13:22:29 +0100 Subject: [PATCH] Fix wrong condition in DataTree --- src/util/DataTree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 !"); }