boolean java.lang.String.equals(java.lang.Object)' on a null object reference

Java
if (called_from != null && called_from.equalsIgnoreCase("add")) {
Source

Also in Java: