Don’t list replies to unknown posts.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 29 Jun 2011 07:26:59 +0000 (09:26 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 29 Jun 2011 07:26:59 +0000 (09:26 +0200)
src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java

index 246cbed..c55939d 100644 (file)
@@ -132,7 +132,7 @@ public class GetStatusAjaxPage extends JsonPage {
 
                        @Override
                        public boolean filterObject(Reply reply) {
-                               return reply.getPost() != null;
+                               return (reply.getPost() != null) && (reply.getPost().getSone() != null);
                        }
                });
                JsonArray jsonReplies = new JsonArray();