handle null response in metrics (odd)

This commit is contained in:
Sleaker 2012-04-25 07:15:17 -07:00
parent 8ad9a85b4b
commit a584b7db61
1 changed files with 2 additions and 2 deletions

View File

@ -331,8 +331,8 @@ public class Metrics {
// close resources
writer.close();
reader.close();
if (response.startsWith("ERR")) {
if (response == null || response.startsWith("ERR")) {
throw new IOException(response); //Throw the exception
} else {
// Is this the first update this hour?