Check if null Boolean is true results in exception

The Solution to Check if null Boolean is true results in exception is


If you don't like extra null checks:

if (Boolean.TRUE.equals(value)) {...}

~ Answered on 2013-09-13 15:36:34


Most Viewed Questions: