Revision: 14972
          http://gate.svn.sourceforge.net/gate/?rev=14972&view=rev
Author:   markagreenwood
Date:     2012-01-10 08:47:28 +0000 (Tue, 10 Jan 2012)
Log Message:
-----------
updated to allow file urls without throwing an NPE

Modified Paths:
--------------
    gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java

Modified: gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java     
2012-01-10 08:47:07 UTC (rev 14971)
+++ gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java     
2012-01-10 08:47:28 UTC (rev 14972)
@@ -1201,7 +1201,7 @@
       switch(column){
         case 0:
           if(site.valid != null && !site.valid) return icoInvalid;
-          if(site.uri.getHost().equals("gate.ac.uk")) return icoGATE;
+          if(site.uri.toString().startsWith("http://gate.ac.uk";)) return 
icoGATE;
           return icoSite;
         case 1:
           return site.enabled;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to