Update year in copyright lines
[Sone.git] / src / main / java / net / pterodactylus / sone / notify / PostVisibilityFilter.java
index edcd148..d29d537 100644 (file)
@@ -16,8 +16,6 @@ import com.google.common.base.Predicate;
 
 /**
  * Filters {@link Notification}s involving {@link Post}s.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 @Singleton
 public class PostVisibilityFilter {
@@ -87,10 +85,9 @@ public class PostVisibilityFilter {
        @Nonnull
        public Predicate<Post> isVisible(@Nullable final Sone currentSone) {
                return new Predicate<Post>() {
-                       @Nonnull
                        @Override
                        public boolean apply(@Nullable Post post) {
-                               return isPostVisible(currentSone, post);
+                               return (post != null) && isPostVisible(currentSone, post);
                        }
                };
        }