I have traced the bug to this code in ActionBeanContext.
public List<Message> getMessages(String key) {
FlashScope scope = FlashScope.getCurrent(getRequest(), true);
List<Message> messages = (List<Message>) scope.get(key);
if (messages == null) {
messages = new ArrayList<Message>();
scope.put(key, messages);
}
return messages;
}
The FlashScope is in line 1 is coming back null so on the second line when it
calls scope.get(key) it is throwing the NPE. So the Flashscope while
Mocktesting is coming back null on the request. I can't believe other users are
not seeing this!
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users