String crashy = null; if (crashy.equals("bang")) { // This de-references a null pointer return; }This should also:
assert false : "Let's crash";You might want to crash for debugging purposes.
String crashy = null; if (crashy.equals("bang")) { // This de-references a null pointer return; }This should also:
assert false : "Let's crash";You might want to crash for debugging purposes.