Yes, that's why wrapped types (like Integer, Boolean) can be null. It is easy to make a mistake. I just wanted to show one way to get null pointer exception. There is lot of other cases also.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, that's why wrapped types (like Integer, Boolean) can be null. It is easy to make a mistake. I just wanted to show one way to get null pointer exception. There is lot of other cases also.