You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Referencing grailsApplication.mainContext causes the exception, with the message being Cannot get property 'mainContext' on null object. I believe autowiring GrailsApplication is not done properly, seeing that this is the only method that makes use of this bean. I look a look at the tests, and it seems like even though retrieving the GrailsApplication bean is tested in a vacuum, the withConnection method itself is not touched.
Currently a workaround for this issue is adding the following to BootStrap.groovy.
Currently, calling
redisService.withConnection
throws aNullPointerException
.Referencing
grailsApplication.mainContext
causes the exception, with the message beingCannot get property 'mainContext' on null object
. I believe autowiringGrailsApplication
is not done properly, seeing that this is the only method that makes use of this bean. I look a look at the tests, and it seems like even though retrieving theGrailsApplication
bean is tested in a vacuum, thewithConnection
method itself is not touched.Currently a workaround for this issue is adding the following to BootStrap.groovy.
The text was updated successfully, but these errors were encountered: