Author: ruschein
Date: 2010-07-09 09:22:28 -0700 (Fri, 09 Jul 2010)
New Revision: 20867

Modified:
   
cytoscape/trunk/src/cytoscape/visual/customgraphic/ui/CustomGraphicsDetailPanel.java
Log:
Fixed an NPE.

Modified: 
cytoscape/trunk/src/cytoscape/visual/customgraphic/ui/CustomGraphicsDetailPanel.java
===================================================================
--- 
cytoscape/trunk/src/cytoscape/visual/customgraphic/ui/CustomGraphicsDetailPanel.java
        2010-07-09 16:03:32 UTC (rev 20866)
+++ 
cytoscape/trunk/src/cytoscape/visual/customgraphic/ui/CustomGraphicsDetailPanel.java
        2010-07-09 16:22:28 UTC (rev 20867)
@@ -214,7 +214,7 @@
 
        private void nameTextFieldActionPerformed(java.awt.event.ActionEvent 
evt) {
                final String newName = this.nameTextField.getText();
-               if(newName != null && newName.trim().length() != 0)
+               if (newName != null && newName.trim().length() != 0 && cg != 
null)
                        cg.setDisplayName(this.nameTextField.getText());
        }
        

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