Make post returned by post reply optional.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / NewPage.java
index 2d4ec55..22d27c8 100644 (file)
@@ -67,7 +67,7 @@ public class NewPage extends SoneTemplatePage {
                /* collect new elements from notifications. */
                Set<Post> posts = new HashSet<Post>(webInterface.getNewPosts());
                for (PostReply reply : webInterface.getNewReplies()) {
-                       posts.add(reply.getPost());
+                       posts.add(reply.getPost().get());
                }
 
                /* filter and sort them. */