Oliver Becker opened SPR-5441 and commented
The evaluation in getValue of Ternary is not null-safe.
Boolean b may evaluate to null, so if (b) will auto-unbox the contained boolean, which throws a NullPointerException in this case.
The code in line 45 should be
if (b != null && b.booleanValue()) {
...
Affects: 3.0 M1