Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Issue reported groovy-user forum: http://www.nabble.com/Regular-Expression-Evaluates-Null-As-True--to25223536.html
/ * Returns true */
println null ==~ /[^0-9]+/
/ * Returns false */
println null ==~ /[0-9]+/
In both the cases, it should probably just throw NPE.