Java: Wrapper Types and Autoboxing Question Unboxing pitfalls: What can go wrong? (Click to reveal answer) Answer Unboxing null values causes NullPointerExceptions. Unboxing converts a wrapper to a primitive. If the wrapper is null, a NullPointerException occurs. Always check for null before unboxing. For instance, 'Integer value = null; int primitive = value;' throws an exception. Additional NotesUnboxing pitfalls: What can go wrong? Track: Java Topic: Core Java Focus: Wrapper Types and Autoboxing Topics: Core Java Java Wrapper Types and Autoboxing