@Override
public boolean apply(PostReply postReply) {
- return postReply.getPost().isPresent();
+ return (postReply == null) ? false : postReply.getPost().isPresent();
}
};
*/
public Optional<Post> getPost();
- /**
- * Sets the post this reply refers to.
- *
- * @param postId
- * The ID of the post to reply to
- * @return This reply
- */
- public PostReply setPost(String postId);
-
}