Revision: 19591
          http://sourceforge.net/p/gate/code/19591
Author:   markagreenwood
Date:     2016-09-20 16:56:54 +0000 (Tue, 20 Sep 2016)
Log Message:
-----------
another NPE guard, hopefully this one will make jenkins happier

Modified Paths:
--------------
    
gate/branches/sawdust2/gate-maven-plugin/src/main/java/uk/ac/gate/maven/DumpCreoleToXML.java

Modified: 
gate/branches/sawdust2/gate-maven-plugin/src/main/java/uk/ac/gate/maven/DumpCreoleToXML.java
===================================================================
--- 
gate/branches/sawdust2/gate-maven-plugin/src/main/java/uk/ac/gate/maven/DumpCreoleToXML.java
        2016-09-20 16:44:30 UTC (rev 19590)
+++ 
gate/branches/sawdust2/gate-maven-plugin/src/main/java/uk/ac/gate/maven/DumpCreoleToXML.java
        2016-09-20 16:56:54 UTC (rev 19591)
@@ -80,7 +80,11 @@
       
       for (Artifact artifact : 
(Set<Artifact>)project.getDependencyArtifacts()) {
         //This seems wrong as it's also adding GATE itself which we should 
probably try and avoid
-        cl.addURL(artifact.getFile().toURI().toURL());
+        
+        //Why do we need this null check when running under jenkins?
+        if (artifact != null && artifact.getFile() != null) {
+          cl.addURL(artifact.getFile().toURI().toURL());
+        }
       }
      
       Plugin plugin = new TargetPlugin(creoleXML,cl);

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


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to