Skip to content

Commit acc6f4e

Browse files
authored
NPE guard (#7691)
1 parent 0cbe770 commit acc6f4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/TemplateDataStoreVO.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public void setSize(Long size) {
277277
}
278278

279279
public long getSize() {
280-
return size;
280+
return size == null ? 0l : size.longValue();
281281
}
282282

283283
public void setPhysicalSize(long physicalSize) {

0 commit comments

Comments
 (0)