Handle nullreference service layer