Skip to content

Instantly share code, notes, and snippets.

@Fleshgrinder
Created February 19, 2017 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fleshgrinder/02ab31a111db6966d38e1ad25e8fdf69 to your computer and use it in GitHub Desktop.
Save Fleshgrinder/02ab31a111db6966d38e1ad25e8fdf69 to your computer and use it in GitHub Desktop.
The Case of the Null Reference: Code Listing 1
public class Main {
public static void main(String[] args) {
f(null);
}
private static int f(Integer x) {
return x + 42;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment