weizhouapache commented on code in PR #11214:
URL: https://github.com/apache/cloudstack/pull/11214#discussion_r2212205699


##########
server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java:
##########
@@ -578,10 +579,14 @@ public TemplateResponse newIsoResponse(TemplateJoinVO 
iso, ResponseView view) {
             isoResponse.setZoneName(iso.getDataCenterName());
         }
 
-        Long isoSize = iso.getSize();
+        long isoSize = iso.getSize();

Review Comment:
   Is it possible that size and physical size are null ? For example, ISO is 
not uploaded successfully.
   
   Long is more safe I think
    



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to