found null pointer exception in constructor that takes in json data UPDATED