[commit] r2234 - trunk/Paradigms/MetaGME/MetaInterpreter

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Jun 12 10:09:35 CDT 2013


Author: ksmyth
Date: Wed Jun 12 10:09:35 2013
New Revision: 2234

Log:
Fix crash with MetaInterpreter running on old paradigm

Modified:
   trunk/Paradigms/MetaGME/MetaInterpreter/BON2Engine.cpp

Modified: trunk/Paradigms/MetaGME/MetaInterpreter/BON2Engine.cpp
==============================================================================
--- trunk/Paradigms/MetaGME/MetaInterpreter/BON2Engine.cpp	Tue Jun 11 17:34:55 2013	(r2233)
+++ trunk/Paradigms/MetaGME/MetaInterpreter/BON2Engine.cpp	Wed Jun 12 10:09:35 2013	(r2234)
@@ -1128,7 +1128,12 @@
 				global_vars.err << MSG_ERROR << "Not reference " << obj1 << " referring\n";
 			else
 				ref_obj->addInitialReferee( elem);
-			bool show_ports = obj3->getAttribute("ShowPorts")->getBooleanValue();
+			bool show_ports = true;
+			BON::Attribute showPortsAttribute = obj3->getAttribute("ShowPorts");
+			if (showPortsAttribute)
+			{
+				show_ports = showPortsAttribute->getBooleanValue();
+			}
 			ref_obj->setShowPorts(show_ports);
 			elem->addRefersToMe( ref_obj);
 		}


More information about the gme-commit mailing list