[commit] r2449 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Feb 26 17:02:51 CST 2014
Author: ksmyth
Date: Wed Feb 26 17:02:51 2014
New Revision: 2449
Log:
CGMEOLEApp::GetMgaProject: dont crash if no project is open
Modified:
trunk/GME/Gme/GMEOLEApp.cpp
Modified: trunk/GME/Gme/GMEOLEApp.cpp
==============================================================================
--- trunk/GME/Gme/GMEOLEApp.cpp Mon Feb 24 15:18:22 2014 (r2448)
+++ trunk/GME/Gme/GMEOLEApp.cpp Wed Feb 26 17:02:51 2014 (r2449)
@@ -586,8 +586,11 @@
// PRECONDITIONS: None
- LPDISPATCH ret;
- theApp.mgaProject->QueryInterface(IID_IDispatch, (void**)&ret);
+ LPDISPATCH ret = nullptr;
+ if (theApp.mgaProject)
+ {
+ theApp.mgaProject->QueryInterface(IID_IDispatch, (void**)&ret);
+ }
return ret;
}
More information about the gme-commit
mailing list