Revision: 20017
http://sourceforge.net/p/gate/code/20017
Author: markagreenwood
Date: 2017-01-30 16:16:25 +0000 (Mon, 30 Jan 2017)
Log Message:
-----------
if the path is null make it the empty string to aviod an NPE later
Modified Paths:
--------------
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/ResourceReference.java
Modified:
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/ResourceReference.java
===================================================================
---
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/ResourceReference.java
2017-01-30 16:05:37 UTC (rev 20016)
+++
gate/branches/sawdust2/gate-core/src/main/java/gate/creole/ResourceReference.java
2017-01-30 16:16:25 UTC (rev 20017)
@@ -61,7 +61,9 @@
public ResourceReference(Plugin plugin, String path)
throws URISyntaxException {
- if(plugin != null) {
+ if (path == null) path = "";
+
+ if(plugin != null) {
uri = plugin.getBaseURI().resolve(path);
} else {
uri = new URI(path);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs