/*
- * Sone - PostReplyImpl.java - Copyright © 2010–2015 David Roden
+ * Sone - PostReplyImpl.java - Copyright © 2010–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
package net.pterodactylus.sone.data.impl;
+import static com.google.common.base.Optional.fromNullable;
+
import net.pterodactylus.sone.data.Post;
import net.pterodactylus.sone.data.PostReply;
import net.pterodactylus.sone.database.PostProvider;
*/
@Override
public Optional<Post> getPost() {
- return postProvider.getPost(postId);
+ return fromNullable(postProvider.getPost(postId));
}
}