sureshanaparti commented on a change in pull request #4875:
URL: https://github.com/apache/cloudstack/pull/4875#discussion_r704051826



##########
File path: 
engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/AncientDataMotionStrategy.java
##########
@@ -146,7 +146,15 @@ private Scope pickCacheScopeForCopy(DataObject srcData, 
DataObject destData) {
     }
 
     protected Answer copyObject(DataObject srcData, DataObject destData, Host 
destHost) {
-        int primaryStorageDownloadWait = 
StorageManager.PRIMARY_STORAGE_DOWNLOAD_WAIT.value();
+        long dataSize = 0;
+        try{
+            dataSize = srcData.getSize();
+        }catch(NullPointerException e){

Review comment:
       ```suggestion
           } catch(NullPointerException e) {
   ```
   
   check and correct formatting in the code changes, wherever applicable.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to