[Solved] Null Pointer Except, but why? [closed]
I believe this line is wrong: if(type.equals(null)) strTypeList = “What?What?What?LOLOLOLOLOLnopechucktesta”; it should be: if(type == null) strTypeList = “What?What?What?LOLOLOLOLOLnopechucktesta”; Without seeing the contents of the method calls here: Type = AddyBook.get(x).getContactType(); it’ll be hard to debug but if I were to guess it would be the method “getContactType()” is returning null. EDIT: Try unchaining the … Read more