I ran across a very weird NPE this morning, and reduced it to a simple example. Is this a JVM bug or correct behavior?
public class Test1 { class Item {
item may not be null, but when you call getId(), that is returning null. When you try to auto-unbox null, you get an NPE.
item
null
getId()