mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-02-28 10:12:21 +01:00
handle null response in metrics (odd)
This commit is contained in:
parent
8ad9a85b4b
commit
a584b7db61
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user