Avoids npe when no config file path
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / pz2utils4jsf / config / Pz2Config.java
index c293649..0c9fc6f 100644 (file)
@@ -87,7 +87,7 @@ public class Pz2Config implements ModuleConfigurationGetter, Serializable {
 \r
   @Override\r
   public String getConfigFilePath() {\r
-    return moduleConfig.getConfigFilePath();\r
+    return (moduleConfig != null ? moduleConfig.getConfigFilePath() : "nopath");\r
   }\r
   \r
   \r