Author: pwang
Date: 2008-09-11 15:31:14 -0700 (Thu, 11 Sep 2008)
New Revision: 14894

Modified:
   
csplugins/trunk/ucsd/pwang/SessionForWebPlugin/src/SessionForWebPlugin/SpeciesAssignmentDialog.java
Log:
bug fix

Modified: 
csplugins/trunk/ucsd/pwang/SessionForWebPlugin/src/SessionForWebPlugin/SpeciesAssignmentDialog.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/SessionForWebPlugin/src/SessionForWebPlugin/SpeciesAssignmentDialog.java
 2008-09-11 22:30:45 UTC (rev 14893)
+++ 
csplugins/trunk/ucsd/pwang/SessionForWebPlugin/src/SessionForWebPlugin/SpeciesAssignmentDialog.java
 2008-09-11 22:31:14 UTC (rev 14894)
@@ -67,10 +67,12 @@
                        if (selectOther) {
                                String inputValue = 
JOptionPane.showInputDialog(this,"Please input new species \n(use coma 
seperator if more than one species)", "Input New Species", 
JOptionPane.PLAIN_MESSAGE);
 
-                                       if (selectedSpecies != "") {
-                                               selectedSpecies +=",";          
                                        
-                                       }
-                                       selectedSpecies += inputValue;
+                               if (inputValue != null) { // OK is clicked
+                                       if (selectedSpecies != "") {
+                                                       selectedSpecies +=",";  
                                                
+                                               }
+                                               selectedSpecies += inputValue;
+                               }
                        }
 
                        this.dispose();


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