Skip to content

Commit

Permalink
#220: fixed not a boolean: [:] exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Aug 14, 2013
1 parent e906ea4 commit fdf7c4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ class BootStrap {

def config = grailsApplication.config

if(!consoleConfig.defaults)
throw new IllegalStateException("could not find console config defaults. Did you properly set console.defaults property ?")

servletContext.consoleConfig = consoleConfig

// setup ivy url handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ConsoleConfig implements GrailsApplicationAware
void setGrailsApplication(GrailsApplication grailsApplication)
{
config = grailsApplication.config
defaults = config.console.defaults
defaults = config.console.defaults ?: [:]
}

def getDefault(String name)
Expand Down

0 comments on commit fdf7c4f

Please sign in to comment.