[commit] r2188 - trunk/GME/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue May 7 12:07:07 CDT 2013


Author: ksmyth
Date: Tue May  7 12:07:06 2013
New Revision: 2188

Log:
Dont crash on trying to set a deleted Reference's referred

Modified:
   trunk/GME/Mga/MgaCheck.cpp

Modified: trunk/GME/Mga/MgaCheck.cpp
==============================================================================
--- trunk/GME/Mga/MgaCheck.cpp	Tue May  7 12:06:47 2013	(r2187)
+++ trunk/GME/Mga/MgaCheck.cpp	Tue May  7 12:07:06 2013	(r2188)
@@ -43,6 +43,8 @@
 void get_absmetapath(CoreObj &t, CComBSTR &abspath) {
 	metaref_type mr = t[ATTRID_ROLEMETA];
 	CoreObj parent = t[ATTRID_FCOPARENT];
+	if (!parent)
+		COMTHROW(E_MGA_OBJECT_DELETED);
 	if(mr) {
 		get_absmetapath(parent, abspath);
 	}


More information about the gme-commit mailing list