Revision: 19590 http://sourceforge.net/p/gate/code/19590 Author: markagreenwood Date: 2016-09-20 16:44:30 +0000 (Tue, 20 Sep 2016) Log Message: ----------- an NPE guard
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 08:38:18 UTC (rev 19589) +++ gate/branches/sawdust2/gate-maven-plugin/src/main/java/uk/ac/gate/maven/DumpCreoleToXML.java 2016-09-20 16:44:30 UTC (rev 19590) @@ -1,3 +1,17 @@ +/* + * DumpCreoleToXML.java + * + * Copyright (c) 2016, The University of Sheffield. See the file + * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt + * + * This file is part of GATE (see http://gate.ac.uk/), and is free + * software, licenced under the GNU Library General Public License, + * Version 3, June 2007 (in the distribution as file licence.html, + * and also available at http://gate.ac.uk/gate/licence.html). + * + * Mark A. Greenwood, 19th September 2016 + */ + package uk.ac.gate.maven; import java.io.File; @@ -52,7 +66,7 @@ File creoleXML = new File(dir, "creole.xml"); - if (!creoleXML.exists()) return; + if (creoleXML == null || !creoleXML.exists()) return; File expandedXML = new File(dir, "META-INF/gate/creole.xml"); expandedXML.getParentFile().mkdirs(); 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