projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unit test for Sone accessor
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
notify
/
ReplyVisibilityFilter.java
diff --git
a/src/main/java/net/pterodactylus/sone/notify/ReplyVisibilityFilter.java
b/src/main/java/net/pterodactylus/sone/notify/ReplyVisibilityFilter.java
index
a76ae25
..
fd13779
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/notify/ReplyVisibilityFilter.java
+++ b/
src/main/java/net/pterodactylus/sone/notify/ReplyVisibilityFilter.java
@@
-62,10
+62,9
@@
public class ReplyVisibilityFilter {
@Nonnull
public Predicate<PostReply> isVisible(@Nullable final Sone currentSone) {
return new Predicate<PostReply>() {
@Nonnull
public Predicate<PostReply> isVisible(@Nullable final Sone currentSone) {
return new Predicate<PostReply>() {
- @Nonnull
@Override
public boolean apply(@Nullable PostReply postReply) {
@Override
public boolean apply(@Nullable PostReply postReply) {
- return isReplyVisible(currentSone, postReply);
+ return
(postReply != null) &&
isReplyVisible(currentSone, postReply);
}
};
}
}
};
}