[commit] r2359 - trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Sep 24 15:25:27 CDT 2013


Author: ksmyth
Date: Tue Sep 24 15:25:27 2013
New Revision: 2359

Log:
currentobj may be null

Modified:
   trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs

Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs	Tue Sep 24 15:25:02 2013	(r2358)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs	Tue Sep 24 15:25:27 2013	(r2359)
@@ -75,7 +75,7 @@
             //  In the new project, install the GME DSMLGenerator NuGet package (search for DSMLGenerator)
             //  Add a Reference in this project to the other project
             //  Add "using [ParadigmName] = ISIS.GME.Dsml.[ParadigmName].Classes.Interfaces;" to the top of this file
-            // if (currentobj.Meta.Name == "KindName")
+            // if (currentobj != null && currentobj.Meta.Name == "KindName")
             // [ParadigmName].[KindName] dsCurrentObj = ISIS.GME.Dsml.[ParadigmName].Classes.[KindName].Cast(currentobj);			
         }
 


More information about the gme-commit mailing list