Skip to content

Commit

Permalink
Fix wrong condition in DataTree
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Mar 3, 2019
1 parent 8b0d4c2 commit 8dfc750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/DataTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 !");
}

Expand Down

0 comments on commit 8dfc750

Please sign in to comment.