- Validation.begin().isNotNull("Reply", reply).check();
- Post post = reply.getPost();
- if (post == null) {
- return false;
- }
- if (!isPostVisible(sone, post)) {
+ checkNotNull(reply, "reply must not be null");
+ Optional<Post> post = reply.getPost();
+ if (!post.isPresent()) {