Author: ruschein
Date: 2010-08-16 13:31:10 -0700 (Mon, 16 Aug 2010)
New Revision: 21397

Modified:
   
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGUIHandler.java
Log:
Fixed an NPE.

Modified: 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGUIHandler.java
===================================================================
--- 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGUIHandler.java
      2010-08-16 20:30:36 UTC (rev 21396)
+++ 
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/AbstractGUIHandler.java
      2010-08-16 20:31:10 UTC (rev 21397)
@@ -219,7 +219,8 @@
 
        public String getState() {
                try {
-                       return getValue().toString();
+                       final Object value = getValue();
+                       return value == null ? "" : value.toString();
                } catch (final Exception e) {
                        e.printStackTrace();
                        return "";

-- 
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