Resolves java.lang.NumberFormatException null