Skip to content

Commit

Permalink
Fixed NullPointerException in Config.groovy when it's read during the…
Browse files Browse the repository at this point in the history
… build.
  • Loading branch information
pledbrook committed Jun 18, 2010
1 parent 5dd9d9d commit be80e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/conf/Config.groovy
Expand Up @@ -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" ]
}
}
Expand Down

0 comments on commit be80e2e

Please sign in to comment.