mirror of
https://github.com/github/codeql.git
synced 2026-06-14 01:11:09 +02:00
10 lines
191 B
Java
10 lines
191 B
Java
public class ExprDeref {
|
|
Integer getBoxed() {
|
|
return 0;
|
|
}
|
|
|
|
int unboxBad(boolean b) {
|
|
return (b ? null : getBoxed()); // $ Alert[java/dereferenced-expr-may-be-null] // NPE
|
|
}
|
|
}
|