Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed NullPointerException in Config.groovy when it's read during the…

… build.
  • Loading branch information...
commit 834a811de542ec491bbb3b1a7f4a321fb5f655d4 1 parent 5ff11fb
@pledbrook pledbrook authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  grails.org/grails-app/conf/Config.groovy
View
2  grails.org/grails-app/conf/Config.groovy
@@ -4,7 +4,7 @@ import org.codehaus.groovy.grails.web.context.ServletContextHolder
environments {
production {
- def target = ServletContextHolder.servletContext.getInitParameter("deployTarget")
+ def target = ServletContextHolder.servletContext?.getInitParameter("deployTarget")
grails.config.locations = [ "file:/var/lib/grails/site-config${target ? '-' + target : ''}.properties" ]
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.