1.“==”源码分析
2.equalsspa
3.TextUtils.isEmpty(str)指针
源码分析:code
public static boolean isEmpty(CharSequence str) { if (str == null || str.length() == 0) return true; else return false; }
4.str.isEmpty()对象
至关于只判断了str.length == 0.当null的时候,会出现空指针异常blog