Skip to content

Instantly share code, notes, and snippets.

@jameslmartin
Last active August 29, 2015 14:23
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 jameslmartin/1af0e6922f3d1278981c to your computer and use it in GitHub Desktop.
Save jameslmartin/1af0e6922f3d1278981c to your computer and use it in GitHub Desktop.
Bad example
// Retrieve keyword information
keywords = retrieveRawKeywordInformation(json);
if(keywords.path("keywords") != null &&
!(keywords.path("keywords") instanceof MissingNode) &&
!(keywords.path("keywords").toString().equals("{}"))){
...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment