X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FReply.java;h=c229d04e999adaa485f4700c1e24049d955b294f;hb=7017646bf42cb265b6df539bb6def40b91d2f968;hp=a686023fad004e90f45c8e0d52d21a1ba0585a37;hpb=6d8f11098552fcb40a87d3e35690b3ba760fb947;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/data/Reply.java b/src/main/java/net/pterodactylus/sone/data/Reply.java
index a686023..c229d04 100644
--- a/src/main/java/net/pterodactylus/sone/data/Reply.java
+++ b/src/main/java/net/pterodactylus/sone/data/Reply.java
@@ -28,7 +28,7 @@ import com.google.common.base.Predicate;
* The type of the reply
* @author David âBombeâ Roden
*/
-public interface Reply> {
+public interface Reply> extends Identified {
/** Comparator that sorts replies ascending by time. */
public static final Comparator super Reply>> TIME_COMPARATOR = new Comparator>() {
@@ -51,7 +51,7 @@ public interface Reply> {
*/
@Override
public boolean apply(Reply> reply) {
- return reply.getTime() <= System.currentTimeMillis();
+ return (reply == null) ? false : reply.getTime() <= System.currentTimeMillis();
}
};