Null pointer exception in CatService