Description
From [email protected] on December 30, 2010 18:12:59
What steps will reproduce the problem? 1. Invoke BaseValidationRule.assertValid(String context, String input) What is the expected output? What do you see instead? Expected output is either a successful return or a thrown ValidationException. Received output is a NullPointerException when input is not valid.
Version: 2.0_rc10 Please provide any additional information below. This problem is due to assertValid passing a null ValidationErrorList into the three argument getValid(String context, String input, ValidationErrorList errorList)- this method assumes that errorList is not null and will attempt to add the validation error to the list instead of throwing it. (See attached JUnit 4 Test Case)
Attachment: ESAPIBugReportTest.java
Original issue: http://code.google.com/p/owasp-esapi-java/issues/detail?id=195