From 2ed1ddb178058125ab3196fde89ba5c08d909f49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 15 Jan 2011 22:45:34 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20mark=20anything=20read=20if=20th?= =?utf8?q?e=20Sone=20could=20not=20be=20found.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/web/ViewSonePage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/web/ViewSonePage.java b/src/main/java/net/pterodactylus/sone/web/ViewSonePage.java index 9fd6fae..9746afd 100644 --- a/src/main/java/net/pterodactylus/sone/web/ViewSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/ViewSonePage.java @@ -65,6 +65,9 @@ public class ViewSonePage extends SoneTemplatePage { @Override protected void postProcess(Request request, DataProvider dataProvider) { Sone sone = (Sone) dataProvider.get("sone"); + if (sone == null) { + return; + } List posts = sone.getPosts(); for (Post post : posts) { webInterface.getCore().markPostKnown(post); -- 2.7.4