Fixed NPE
This commit is contained in:
@ -378,7 +378,7 @@ public class JPushover {
|
|||||||
LOG.error("Failed to send message to pushover", e);
|
LOG.error("Failed to send message to pushover", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return jPushoverResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getToken() {
|
public String getToken() {
|
||||||
|
@ -73,5 +73,8 @@ public class TestJPushover {
|
|||||||
File file = new File(UUID.randomUUID().toString());
|
File file = new File(UUID.randomUUID().toString());
|
||||||
push.withAttachment(file);
|
push.withAttachment(file);
|
||||||
assertTrue(push.getAttachment() != null);
|
assertTrue(push.getAttachment() != null);
|
||||||
|
|
||||||
|
JPushoverResponse response = push.push();
|
||||||
|
assertTrue(response != null);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user