Grails

Cannot set flash.message to null

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.2-RC2
  • Fix Version/s: 1.2 final
  • Component/s: Controllers
  • Labels:
    None

Description

I just upgraded from RC1 to RC2, and had some code that previously worked failing.

Code

flash.message = true

now throws NPE.

Caused by: java.lang.NullPointerException
	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)

It's easy enough to work around, but a potential issue could be with trying to reset a flash message to null, so that a UI that checks for null on whether to show message will return an unexpected result.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: