If you see java.lang.String in the source and use the null parameter as a parameter. NPE is cast in the first line method along the length ().
public String concat(String str) { int otherLen = str.length();//This is where NullPointerException is thrown if (otherLen == 0) { return this; } getChars(0, count, buf, 0); str.getChars(0, otherLen, buf, count); return new String(0, count + otherLen, buf); }
Zigac
source share