tried to fix NullPointerException

its not working :(