Permalink
Browse files

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

… build.
  • Loading branch information...
pledbrook committed Jun 18, 2010
1 parent 5ff11fb commit 834a811de542ec491bbb3b1a7f4a321fb5f655d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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" ]
}
}

0 comments on commit 834a811

Please sign in to comment.