Copilot commented on code in PR #12350:
URL: https://github.com/apache/cloudstack/pull/12350#discussion_r2652568189


##########
engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/SecondaryStorageServiceImpl.java:
##########
@@ -257,9 +257,9 @@ protected Void 
migrateDataCallBack(AsyncCallbackDispatcher<SecondaryStorageServi
                 }
             } else {
                 if (destData instanceof  VolumeInfo) {
-                    ((VolumeInfo) 
destData).processEventOnly(ObjectInDataStoreStateMachine.Event.OperationSuccessed,
 answer);
+                    ((VolumeInfo) 
destData).processEventOnly(ObjectInDataStoreStateMachine.Event.OperationSucceeded,
 answer);
                 } else {
-                    
destData.processEvent(ObjectInDataStoreStateMachine.Event.OperationSuccessed, 
answer);
+                    
destData.processEvent(ObjectInDataStoreStateMachine.Event.OperationSucceeded, 
answer);

Review Comment:
   Variable [destData](1) may be null at this access as suggested by [this](2) 
null guard.



-- 
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