VirtualBox

Changeset 30939 in vbox


Ignore:
Timestamp:
Jul 20, 2010 5:37:58 PM (14 years ago)
Author:
vboxsync
Message:

Main: fix crash regression in new Machine::prepareUnregister() with inaccessible machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r30934 r30939  
    60496049    else
    60506050        // caller wants no automatic detachment: then fail if there are any
    6051         if (mMediaData->mAttachments.size())
     6051        if (    !mMediaData.isNull()      // can be NULL if machine is inaccessible
     6052             && mMediaData->mAttachments.size()
     6053           )
    60526054            return setError(VBOX_E_INVALID_OBJECT_STATE,
    60536055                            tr("Cannot unregister the machine '%ls' because it has %d media attachments"),
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