VirtualBox

Changeset 35274 in vbox for trunk/src


Ignore:
Timestamp:
Dec 21, 2010 12:53:59 PM (14 years ago)
Author:
vboxsync
Message:

play safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.cpp

    r35273 r35274  
    21462146    if (!pParent)
    21472147        pParent = mainWindowShown();
    2148     QString strErrInfo = !extPackFile.isOk() ? formatErrorInfo(extPackFile) : formatErrorInfo(progress.GetErrorInfo());
     2148    QString strErrInfo = !extPackFile.isOk() || progress.isNull()
     2149                       ? formatErrorInfo(extPackFile) : formatErrorInfo(progress.GetErrorInfo());
    21492150    message (pParent,
    21502151             Error,
     
    21582159    if (!pParent)
    21592160        pParent = mainWindowShown();
    2160     QString strErrInfo = !extPackManager.isOk() ? formatErrorInfo(extPackManager) : formatErrorInfo(progress.GetErrorInfo());
     2161    QString strErrInfo = !extPackManager.isOk() || progress.isNull()
     2162                       ? formatErrorInfo(extPackManager) : formatErrorInfo(progress.GetErrorInfo());
    21612163    message (pParent,
    21622164             Error,
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