Author: pwang
Date: 2011-12-02 14:59:23 -0800 (Fri, 02 Dec 2011)
New Revision: 27682

Modified:
   
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
Log:
Fixed bug#460

Modified: 
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
===================================================================
--- 
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
    2011-12-02 00:42:28 UTC (rev 27681)
+++ 
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/FileUtilImpl.java
    2011-12-02 22:59:23 UTC (rev 27682)
@@ -264,8 +264,17 @@
                                return fileName;
                }
                
+               
                // Need to add ext
-               return fileName + "." + extSet.iterator().next();
+               String fullFileName = fileName;
+               try {
+                       fullFileName = fileName + "." + 
extSet.iterator().next();
+               }
+               catch(Exception e){
+                       //If the category is "UNSPECIFIED", we may get 
null-pointer exception here
+               }
+               
+               return fullFileName;
        }
 
        private static final class CombinedFilenameFilter implements 
FilenameFilter {

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