From: David ‘Bombe’ Roden Date: Fri, 5 Jul 2013 06:05:44 +0000 (+0200) Subject: Don’t try to get post if it doesn’t exist! X-Git-Tag: 0.8.6^2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=300a57badf034179f67bb981b88e992c933dc70b;p=Sone.git Don’t try to get post if it doesn’t exist! --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 9b60076..7b4bc4b 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -603,7 +603,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, synchronized (bookmarkedPosts) { for (String bookmarkedPostId : bookmarkedPosts) { Optional post = getPost(bookmarkedPostId); - if (!post.isPresent()) { + if (post.isPresent()) { posts.add(post.get()); } }