Revision: 19820
          http://sourceforge.net/p/gate/code/19820
Author:   markagreenwood
Date:     2016-11-28 08:32:52 +0000 (Mon, 28 Nov 2016)
Log Message:
-----------
fixed a case where || should have been && and could have led to an NPE

Modified Paths:
--------------
    
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/resources/resources/clean.jape

Modified: 
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/resources/resources/clean.jape
===================================================================
--- 
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/resources/resources/clean.jape
     2016-11-28 08:20:28 UTC (rev 19819)
+++ 
gate/branches/sawdust2/plugins/Tagger_Chemistry/src/main/resources/resources/clean.jape
     2016-11-28 08:32:52 UTC (rev 19820)
@@ -35,7 +35,7 @@
        
        gate.AnnotationSet splits = 
outputAS.get("Split",dotSet.firstNode().getOffset(),dotSet.lastNode().getOffset());
        
-       if (splits != null || splits.size() > 0)
+       if (splits != null && splits.size() > 0)
        {
                outputAS.removeAll(elSet);
        }

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


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to