mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-08 23:56:52 +01:00
return null if no template could be found
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package sonia.scm.template;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
@@ -129,6 +130,12 @@ public class ServletMustacheFactory extends DefaultMustacheFactory
|
||||
logger.warn("could not find resource {}", resourceName);
|
||||
}
|
||||
|
||||
if (reader == null)
|
||||
{
|
||||
throw new MustacheTemplateNotFoundException(
|
||||
"could not find template for resource ".concat(resourceName));
|
||||
}
|
||||
|
||||
return reader;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user