From 8826b060b0f4cd133df49675945603de88175d49 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 12 Mar 2013 16:22:59 -0400 Subject: [PATCH] Avoids npe when no config file path --- src/main/java/com/indexdata/pz2utils4jsf/config/Pz2Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/indexdata/pz2utils4jsf/config/Pz2Config.java b/src/main/java/com/indexdata/pz2utils4jsf/config/Pz2Config.java index c293649..0c9fc6f 100644 --- a/src/main/java/com/indexdata/pz2utils4jsf/config/Pz2Config.java +++ b/src/main/java/com/indexdata/pz2utils4jsf/config/Pz2Config.java @@ -87,7 +87,7 @@ public class Pz2Config implements ModuleConfigurationGetter, Serializable { @Override public String getConfigFilePath() { - return moduleConfig.getConfigFilePath(); + return (moduleConfig != null ? moduleConfig.getConfigFilePath() : "nopath"); } -- 1.7.10.4