You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2014/06/02 11:22:05 UTC
[6/6] git commit: fixed possible NPE when running ldpath-templating
from CLI
fixed possible NPE when running ldpath-templating from CLI
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/fa98d109
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/fa98d109
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/fa98d109
Branch: refs/heads/develop
Commit: fa98d109dd427f9d420ba4154fb595b4392cafd4
Parents: 4e4aa9a
Author: Jakob Frank <ja...@apache.org>
Authored: Mon Jun 2 10:20:16 2014 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Mon Jun 2 10:25:27 2014 +0200
----------------------------------------------------------------------
.../main/java/org/apache/marmotta/ldpath/template/LDTemplate.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/fa98d109/libraries/ldpath/ldpath-template-linkeddata/src/main/java/org/apache/marmotta/ldpath/template/LDTemplate.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template-linkeddata/src/main/java/org/apache/marmotta/ldpath/template/LDTemplate.java b/libraries/ldpath/ldpath-template-linkeddata/src/main/java/org/apache/marmotta/ldpath/template/LDTemplate.java
index 0d684c2..ad96e0b 100644
--- a/libraries/ldpath/ldpath-template-linkeddata/src/main/java/org/apache/marmotta/ldpath/template/LDTemplate.java
+++ b/libraries/ldpath/ldpath-template-linkeddata/src/main/java/org/apache/marmotta/ldpath/template/LDTemplate.java
@@ -103,7 +103,7 @@ public class LDTemplate {
if(backend != null && context != null && template != null) {
TemplateEngine<Value> engine = new TemplateEngine<Value>(backend);
- engine.setDirectoryForTemplateLoading(template.getParentFile());
+ engine.setDirectoryForTemplateLoading(template.getAbsoluteFile().getParentFile());
engine.processFileTemplate(context,template.getName(),out);
out.flush();
}