VirtualBox

Changeset 99186 in vbox for trunk


Ignore:
Timestamp:
Mar 27, 2023 3:09:34 PM (18 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: While handling cloud related async tasks we need to check whether progress was initially NULL because cloud client can be NULL as well.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIProgressTaskReadCloudMachineList.cpp

    r98103 r99186  
    8282{
    8383    /* Handle progress-wrapper errors: */
    84     if (!comProgress.GetCanceled() && (!comProgress.isOk() || comProgress.GetResultCode() != 0))
     84    if (comProgress.isNotNull() && !comProgress.GetCanceled() && (!comProgress.isOk() || comProgress.GetResultCode() != 0))
    8585    {
    8686        m_strErrorMessage = UIErrorString::formatErrorInfo(comProgress);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp

    r98103 r99186  
    100100{
    101101    /* Handle progress-wrapper errors: */
    102     if (!comProgress.GetCanceled() && (!comProgress.isOk() || comProgress.GetResultCode() != 0))
     102    if (comProgress.isNotNull() && !comProgress.GetCanceled() && (!comProgress.isOk() || comProgress.GetResultCode() != 0))
    103103        UINotificationMessage::cannotRefreshCloudMachine(comProgress);
    104104}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette