saurabhkushwaha438 opened a new pull request, #13263:
URL: https://github.com/apache/cloudstack/pull/13263

   Implemented defensive null checks to prevent secondary NullPointerExceptions 
from masking the original VM import failure reason during VMware-to-KVM 
migration. for issue #13007 
   
   Changes made:
   
   1. `UnmanagedVMsManagerImpl.java`
   
      * Added a null guard before invoking `updateImportVMTaskErrorState(...)` 
inside the `CloudRuntimeException` catch block.
   
   2. `ImportVmTasksManagerImpl.java`
   
      * Added an early return in `updateImportVMTaskErrorState(...)` when the 
provided task object is null.
   
   These changes ensure that the original import/conversion failure (for 
example missing `virt-v2v` or `nbdkit-vddk` on the target KVM host) is 
preserved and propagated correctly to the UI instead of being hidden by a 
secondary NPE during task error handling.
   


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