File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
grails-plugin-gsp/src/main/groovy/org/grails/plugins/web Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,9 @@ class GroovyPagesGrailsPlugin extends Plugin {
170170 resourceLoader = groovyPageResourceLoader
171171 }
172172 if (deployed) {
173- def context = grailsApplication. mainContext
174- def allViewsProperties = context. getResources(" classpath*:gsp/views.properties" )
175- allViewsProperties = allViewsProperties. findAll { Resource r ->
173+ def context = grailsApplication? . mainContext
174+ def allViewsProperties = context? . getResources(" classpath*:gsp/views.properties" )
175+ allViewsProperties = allViewsProperties? . findAll { Resource r ->
176176 def p = r.URL . path
177177 if (warDeployed && p. contains(' /WEB-INF/classes' )) {
178178 return true
@@ -185,7 +185,7 @@ class GroovyPagesGrailsPlugin extends Plugin {
185185 }
186186 precompiledGspMap = { PropertiesFactoryBean pfb ->
187187 ignoreResourceNotFound = true
188- locations = allViewsProperties as Resource []
188+ locations = allViewsProperties ? allViewsProperties as Resource [] : ' classpath:gsp/views.properties '
189189 }
190190 }
191191 if (enableReload) {
You can’t perform that action at this time.
0 commit comments