Skip to content

Instantly share code, notes, and snippets.

@esammer
Created November 8, 2012 23:25
Show Gist options
  • Save esammer/4042578 to your computer and use it in GitHub Desktop.
Save esammer/4042578 to your computer and use it in GitHub Desktop.
No description fully describes what this is.
} catch (NullPointerException e) {
throw npe(e, " of "+schema.getFullName());
}
}
/** Helper method for adding a message to an NPE. */
protected NullPointerException npe(NullPointerException e, String s) {
NullPointerException result = new NullPointerException(e.getMessage()+s);
result.initCause(e.getCause() == null ? e : e.getCause());
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment