Skip to content

Instantly share code, notes, and snippets.

@chids
Created September 16, 2011 10:11
Show Gist options
  • Save chids/1221742 to your computer and use it in GitHub Desktop.
Save chids/1221742 to your computer and use it in GitHub Desktop.
How not to write null checking/masking logic
if(leftImage != null)
{
leftImage = leftImage.toLowerCase();
}
if(leftImage.equals("null"))
{
leftImage = null;
}
// ... repeated for 5 different string variables
@nippe
Copy link

nippe commented Sep 16, 2011

Glorius!

@peterlundberg
Copy link

WTF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment