NullPointer when validating required encrypted List

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

NullPointer when validating required encrypted List


I have a Stripes exception since 1.5.7 with this code:
@Validate(required=true, encrypted=true, on={"save"})
private List<MyObject> myObjects;

When "myObjects" is not sent in the request, we have the following stacktrace:

java.lang.NullPointerException: null
       at net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.validateRequiredFields( ~[stripes-1.5.8.jar:1.5.8]
       at net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.bind( ~[stripes-1.5.8.jar:1.5.8]
       at net.sourceforge.stripes.controller.DispatcherHelper$3.intercept( ~[stripes-1.5.8.jar:1.5.8]
       at net.sourceforge.stripes.controller.ExecutionContext.proceed( ~[stripes-1.5.8.jar:1.5.8]

It doesn't happen if I remove encrypted=true.

In line 494, "values" is null and should be protected, this would fix the issue.


Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
Stripes-development mailing list
[hidden email]