Deal with NPE when response location is null