null pointer solved