blob: 03646a17086b54bb735b415de2729ed9443bfe1a [file] [log] [blame] [view] [edit]
If a conditional expression evalutes to `null`, unboxing it will result in a
`NullPointerException`.
For example:
```java
int x = flag ? foo : null:
```
If `flag` is false, `null` will be auto-unboxed from an `Integer` to `int`,
resulting in a NullPointerException.