kaleidos / grails-security-stateless

Grails plugin to implement stateless authentication using Spring Security
Apache License 2.0
17 stars 8 forks source link

Declare map variable outside try block to have it available outside the try context #28

Closed mgdelacroix closed 9 years ago

mgdelacroix commented 9 years ago

As we are using the map variable later in the method, it needs to be declared outside the try block to avoid errors like the following:

| Error 2015-03-21 09:05:10,167 [http-bio-8080-exec-6] ERROR errors.GrailsExceptionResolver  - MissingPropertyException occurred when processing request: [GET] /
No such property: map for class: net.kaleidos.grails.plugin.security.stateless.SecurityStatelessFilters. Stacktrace follows:
Message: No such property: map for class: net.kaleidos.grails.plugin.security.stateless.SecurityStatelessFilters
    Line | Method
->>   53 | doCall    in net.kaleidos.grails.plugin.security.stateless.SecurityStatelessFilters$_closure1_closure4_closure5$$EP7YGHfE
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    198 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter
|   1142 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    617 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run       in java.lang.Thread