getRequest() may throw an exception
Proper fix