Merge branch 'release-0.8.8'
[Sone.git] / src / main / java / net / pterodactylus / sone / text / SoneTextParser.java
index 6d81c0d..0b1585a 100644 (file)
@@ -28,6 +28,7 @@ import java.util.regex.Pattern;
 
 import net.pterodactylus.sone.data.Post;
 import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.data.SoneImpl;
 import net.pterodactylus.sone.database.PostProvider;
 import net.pterodactylus.sone.database.SoneProvider;
 import net.pterodactylus.util.io.Closer;
@@ -248,7 +249,7 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
                                                                 * don’t use create=true above, we don’t want
                                                                 * the empty shell.
                                                                 */
-                                                               sone = Optional.fromNullable(new Sone(soneId, false));
+                                                               sone = Optional.<Sone>of(new SoneImpl(soneId, false));
                                                        }
                                                        parts.add(new SonePart(sone.get()));
                                                        line = line.substring(50);