exception handling with null response