mirror of https://github.com/apache/cloudstack.git
NPE guard (#7691)
This commit is contained in:
parent
0cbe77024a
commit
acc6f4e725
|
|
@ -277,7 +277,7 @@ public class TemplateDataStoreVO implements StateObject<ObjectInDataStoreStateMa
|
|||
}
|
||||
|
||||
public long getSize() {
|
||||
return size;
|
||||
return size == null ? 0l : size.longValue();
|
||||
}
|
||||
|
||||
public void setPhysicalSize(long physicalSize) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue