Revision: 18323
          http://sourceforge.net/p/gate/code/18323
Author:   markagreenwood
Date:     2014-09-12 12:05:36 +0000 (Fri, 12 Sep 2014)
Log Message:
-----------
a stricter NPE guard

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/ResourceParametersEditor.java

Modified: gate/trunk/src/main/gate/gui/ResourceParametersEditor.java
===================================================================
--- gate/trunk/src/main/gate/gui/ResourceParametersEditor.java  2014-09-12 
11:32:45 UTC (rev 18322)
+++ gate/trunk/src/main/gate/gui/ResourceParametersEditor.java  2014-09-12 
12:05:36 UTC (rev 18323)
@@ -392,7 +392,7 @@
           Object oldValue = pDisj.getValue();
           if (!Objects.equals(oldValue, aValue)) {
             pDisj.setValue(aValue);
-            if (ResourceParametersEditor.this.resource == null) break;
+            if (ResourceParametersEditor.this == null || 
ResourceParametersEditor.this.resource == null) break;
             try {
               
ResourceParametersEditor.this.resource.setParameterValue(pDisj.getName(), 
pDisj.getValue());
             } catch(ResourceInstantiationException e) {

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


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to