Author: ruschein
Date: 2010-02-03 15:59:56 -0800 (Wed, 03 Feb 2010)
New Revision: 19171

Modified:
   cytoscape/trunk/src/cytoscape/util/OpenBrowser.java
Log:
Fixed a problem where the defaultWebBrowser property can be the empty string.

Modified: cytoscape/trunk/src/cytoscape/util/OpenBrowser.java
===================================================================
--- cytoscape/trunk/src/cytoscape/util/OpenBrowser.java 2010-02-03 23:35:57 UTC 
(rev 19170)
+++ cytoscape/trunk/src/cytoscape/util/OpenBrowser.java 2010-02-03 23:59:56 UTC 
(rev 19171)
@@ -65,7 +65,9 @@
         */
        public static void openURL(final String url) {
                final Properties prop = CytoscapeInit.getProperties();
-               final String defBrowser = prop.getProperty("defaultWebBrowser");
+               String defBrowser = prop.getProperty("defaultWebBrowser");
+               if (defBrowser.equals(""))
+                       defBrowser = null;
                final String osName = System.getProperty("os.name");
 
                boolean succeeded;

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