Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
5.0.12
-
None
Description
the validate method of the Required validator contains following code line:
if (value == null || value.toString().equals(""))...
if the toString method returns null an exception will occur (happened to me accidentally )
this code line should at least be changed to:
if (value == null || "".equals(value.toString())... to prevent NPE