Author: scooter
Date: 2011-05-17 11:57:45 -0700 (Tue, 17 May 2011)
New Revision: 25459

Modified:
   csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java
Log:
Guard against NPE when calling run directly.


Modified: 
csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java
===================================================================
--- csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java   
2011-05-17 00:03:01 UTC (rev 25458)
+++ csplugins/trunk/ucsf/scooter/commandTool/src/commandTool/CommandTool.java   
2011-05-17 18:57:45 UTC (rev 25459)
@@ -86,6 +86,9 @@
        }
 
        public static MessageHandler getMessageHandlerContext() {
+               if (handlerContext == null) {
+                       handlerContext = new 
LogMessageHandler(CyLogger.getLogger(CommandTool.class));
+               }
                return handlerContext;
        }
 

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to