Parse creation time as a long.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 18:32:06 +0000 (20:32 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 18:32:06 +0000 (20:32 +0200)
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java

index 4de9678..a691440 100644 (file)
@@ -458,7 +458,7 @@ public class SoneDownloader extends AbstractService {
                                                        logger.log(Level.WARNING, "Downloaded Sone %s contains invalid images!", new Object[] { sone });
                                                        return null;
                                                }
-                                               long creationTime = Numbers.safeParseInteger(imageCreationTimeString, 0);
+                                               long creationTime = Numbers.safeParseLong(imageCreationTimeString, 0L);
                                                int imageWidth = Numbers.safeParseInteger(imageWidthString, 0);
                                                int imageHeight = Numbers.safeParseInteger(imageHeightString, 0);
                                                if ((imageWidth < 1) || (imageHeight < 1)) {