Exception thrown. java.lang.NullPointerException: Cannot enter synchronized block because "" is null