diff --git a/ccm-navigation/src/com/arsdigita/navigation/Loader.java b/ccm-navigation/src/com/arsdigita/navigation/Loader.java index 99a8b008b..14617e953 100755 --- a/ccm-navigation/src/com/arsdigita/navigation/Loader.java +++ b/ccm-navigation/src/com/arsdigita/navigation/Loader.java @@ -182,6 +182,9 @@ public class Loader extends PackageLoader { String templatesFile = (String)get(m_templatesFile); InputStream file = Thread.currentThread().getContextClassLoader() .getResourceAsStream(templatesFile); + if (file == null) { + throw new UncheckedWrapperException(String.format("Failed to open templates files %s.", templatesFile)); + } BufferedReader templates = new BufferedReader( new InputStreamReader( file ) );