From a405a19ef1019095db939751f02d0c398931b71a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 14 Nov 2010 21:58:35 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20notify=20for=20replies=20on=20po?= =?utf8?q?sts=20we=20don=E2=80=99t=20have.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/web/WebInterface.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 115e0c3..2f3f575 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -382,6 +382,9 @@ public class WebInterface implements CoreListener { */ @Override public void newReplyFound(Reply reply) { + if (reply.getPost().getSone() == null) { + return; + } newReplyNotification.addReply(reply); notificationManager.addNotification(newReplyNotification); } -- 2.7.4