Fixed NPE

This commit is contained in:
Sven Kubiak
2018-01-31 15:55:01 +01:00
parent be13c5f66d
commit 484f974cb4
2 changed files with 4 additions and 1 deletions

View File

@ -378,7 +378,7 @@ public class JPushover {
LOG.error("Failed to send message to pushover", e);
}
return null;
return jPushoverResponse;
}
public String getToken() {

View File

@ -73,5 +73,8 @@ public class TestJPushover {
File file = new File(UUID.randomUUID().toString());
push.withAttachment(file);
assertTrue(push.getAttachment() != null);
JPushoverResponse response = push.push();
assertTrue(response != null);
}
}