Messages.get() with null vararg lead to Exception
Bug #604598 reported by
7uc0
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Within Unit Test method :
String myArg = null;
myArg = evaluationFonct
assertNotNull(
assertNotNull(
As myArg may be null, unit test errors with NPE Exception. As discussed here, It would be great if Messages utility class could handle pontential null args and deal with them as empty String.
Changed in play: | |
status: | New → Fix Committed |
milestone: | none → 1.1 |
To post a comment you must log in.