Revision: 18316
          http://sourceforge.net/p/gate/code/18316
Author:   markagreenwood
Date:     2014-09-11 11:54:57 +0000 (Thu, 11 Sep 2014)
Log Message:
-----------
added an 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-11 
11:54:12 UTC (rev 18315)
+++ gate/trunk/src/main/gate/gui/ResourceParametersEditor.java  2014-09-11 
11:54:57 UTC (rev 18316)
@@ -392,6 +392,7 @@
           Object oldValue = pDisj.getValue();
           if (!Objects.equals(oldValue, aValue)) {
             pDisj.setValue(aValue);
+            if (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