My code is breaking on the following line with a nullpointerexception:
if (stringVariable.equals(null)){
Previous to this statement, I declare the stringVariable and set it to a database field.
In this statement, I am trying to detect if the field had a null
value, but unfortunately it breaks!
Any thoughts?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…