Permalink
Browse files

fix for GRAILS-8037 "gsp layout from binary plugin causes NPE"

  • Loading branch information...
1 parent a9c5875 commit 32efdd9f72818e3c284b53e8c335657edc612e08 Graeme Rocher committed Sep 20, 2011
@@ -147,7 +147,8 @@ protected GroovyPageScriptSource findBinaryScriptSource(String uri) {
return null;
}
- uri = GrailsResourceUtils.appendPiecesForUri(PATH_TO_WEB_INF_VIEWS, uri);
+ if(!uri.startsWith(PATH_TO_WEB_INF_VIEWS))
+ uri = GrailsResourceUtils.appendPiecesForUri(PATH_TO_WEB_INF_VIEWS, uri);
for (GrailsPlugin plugin : pluginManager.getAllPlugins()) {
if (!(plugin instanceof BinaryGrailsPlugin)) {
continue;

0 comments on commit 32efdd9

Please sign in to comment.