Throw exception on invalid reply times.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneParser.java
index cece15f..2e23257 100644 (file)
@@ -215,7 +215,7 @@ public class SoneParser {
                                } catch (NumberFormatException nfe1) {
                                        /* TODO - mark Sone as bad. */
                                        logger.log(Level.WARNING, String.format("Downloaded reply for Sone %s with invalid time: %s", sone, replyTime));
-                                       return null;
+                                       throw new MalformedTime();
                                }
                        }
                }