[commit] r2210 - trunk/Paradigms/MetaGME/MetaInterpreter/Rep

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed May 22 11:55:05 CDT 2013


Author: ksmyth
Date: Wed May 22 11:55:04 2013
New Revision: 2210

Log:
Dont crash on old version of MetaGME

Modified:
   trunk/Paradigms/MetaGME/MetaInterpreter/Rep/AspectRep.cpp

Modified: trunk/Paradigms/MetaGME/MetaInterpreter/Rep/AspectRep.cpp
==============================================================================
--- trunk/Paradigms/MetaGME/MetaInterpreter/Rep/AspectRep.cpp	Wed May 22 11:54:37 2013	(r2209)
+++ trunk/Paradigms/MetaGME/MetaInterpreter/Rep/AspectRep.cpp	Wed May 22 11:55:04 2013	(r2210)
@@ -166,8 +166,12 @@
 {
 	if( m_ptr)
 	{
-		bool b =  m_ptr->getAttribute("ReadOnly")->getBooleanValue();
-		return b;
+		BON::Attribute readOnlyAttribute = m_ptr->getAttribute("ReadOnly");
+		if (readOnlyAttribute) // old MetaGME doesn't have this attribute
+		{
+			return m_ptr->getAttribute("ReadOnly")->getBooleanValue();
+		}
+		return false;
 	}
 	else // dummy aspect
 	{


More information about the gme-commit mailing list