Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.2-M1
-
Fix Version/s: 1.2-M2
-
Component/s: None
-
Labels:None
-
Testcase included:yes
Description
The Navigation plugin has code like this in the taglib:
if ((controllerName == data.controller) && (!actionMatch || (actionName == data.action)) && (!data.params || (data.params.every { e -> params.get(e.key)?.equals(e.value) })) ) { data.active = true } out << body(var ? [(var):data] : data)
This code is NPE'ing on existing apps with 1.2M1, but works fine with 1.1.1
My guess is that actionName is null in 1.2M1? This code is executed from a tag that then executes the above code in a closure.
Source for the tag is here: https://svn.codehaus.org/grails-plugins/grails-navigation/trunk/grails-app/taglib/NavigationTagLib.groovy
Line 131 or so.
-
Hide
- NavRegression.zip
- 13/Jul/09 4:11 PM
- 266 kB
- Marc Palmer
-
- NavRegression/.classpath 6 kB
- NavRegression/.project 0.5 kB
- NavRegression/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- NavRegression/application.properties 0.2 kB
- NavRegression/build.xml 5 kB
- NavRegression/.../BootStrap.groovy 0.1 kB
- NavRegression/grails-app/.../Config.groovy 3 kB
- NavRegression/.../DataSource.groovy 0.6 kB
- NavRegression/.../resources.groovy 0.0 kB
- NavRegression/.../UrlMappings.groovy 0.2 kB
- NavRegression/.../TestController.groovy 0.1 kB
- __MACOSX/.../._TestController.groovy 0.2 kB
- NavRegression/.../messages.properties 3 kB
- NavRegression/.../messages_de.properties 3 kB
- NavRegression/.../messages_es.properties 3 kB
- NavRegression/.../messages_fr.properties 2 kB
- NavRegression/.../messages_it.properties 2 kB
- NavRegression/.../messages_ja.properties 2 kB
- NavRegression/.../messages_nl.properties 3 kB
- NavRegression/.../messages_pt_BR.properties 3 kB
- NavRegression/.../messages_pt_PT.properties 3 kB
- NavRegression/.../messages_ru.properties 4 kB
- NavRegression/.../messages_th.properties 5 kB
- NavRegression/.../messages_zh_CN.properties 2 kB
- NavRegression/grails-app/views/error.gsp 2 kB
- NavRegression/grails-app/views/index.gsp 0.9 kB
- NavRegression/grails-app/.../main.gsp 0.7 kB
- NavRegression/grails-app/.../test/index.gsp 0.1 kB
- __MACOSX/NavRegression/.../test/._index.gsp 0.2 kB
- NavRegression/ivy.xml 2 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Isolated it. 1.2M1 causes NPE in this code (line 131) in the nav taglib:
With 1.1.1 this is fine. data is not null as it gets past 130. actionName appears to be null in 1.2M1