- if (currentSone != null) {
- options.put("ShowNotification/NewSones", currentSone.getOptions().isShowNewSoneNotifications());
- options.put("ShowNotification/NewPosts", currentSone.getOptions().isShowNewPostNotifications());
- options.put("ShowNotification/NewReplies", currentSone.getOptions().isShowNewReplyNotifications());
+ if (currentSone.isPresent()) {
+ options.put("ShowNotification/NewSones", currentSone.get().getOptions().isShowNewSoneNotifications());
+ options.put("ShowNotification/NewPosts", currentSone.get().getOptions().isShowNewPostNotifications());
+ options.put("ShowNotification/NewReplies", currentSone.get().getOptions().isShowNewReplyNotifications());