diff --git a/src/main/java/io/hops/metadata/common/entity/LongVariable.java b/src/main/java/io/hops/metadata/common/entity/LongVariable.java index 3a21634d..1b41824d 100644 --- a/src/main/java/io/hops/metadata/common/entity/LongVariable.java +++ b/src/main/java/io/hops/metadata/common/entity/LongVariable.java @@ -42,6 +42,11 @@ public Long getValue() { @Override public void setValue(byte[] val) { if (val.length != getLength()) { + //it sometime (updates) happen that we want to convert a int to a long + if(val.length == 4){ + ByteBuffer buf = ByteBuffer.wrap(val); + value = new Long(buf.getInt()); + } return; } ByteBuffer buf = ByteBuffer.wrap(val);