From: Niels Erik G. Nielsen Date: Tue, 12 Mar 2013 20:22:59 +0000 (-0400) Subject: Avoids npe when no config file path X-Git-Tag: v0.0.7~212 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=8826b060b0f4cd133df49675945603de88175d49;p=mkjsf-moved-to-github.git Avoids npe when no config file path --- 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"); }