Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
The null check here is misplaced. if the variable is null you'll get a NullPointerException. 
      Either the check is useless (the variable will never be null) or it's incorrect.
      <br>Example : 
      <pre>
if (object1!=null && object2.equals(object1)) { 
  ...
}      
      </pre>
New to GrepCode? Check out our FAQ X