diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-12-03 16:04:30 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-12-03 16:04:30 +0100 |
commit | 1173b6704944222b23097ab7020b0417d5ce094a (patch) | |
tree | f837ab8b5e9478dbac6c46c7f15d4f02a0162b32 /core/src/main/java | |
parent | 604d04ae21ab0cbcca24cbbefabdaa443b064c37 (diff) | |
download | AntennaPod-1173b6704944222b23097ab7020b0417d5ce094a.zip |
Fixed IndexOutOfBoundsException in parseTimeString
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/syndication/util/SyndDateUtils.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/util/SyndDateUtils.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/util/SyndDateUtils.java index d493286ac..72e0f053b 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/util/SyndDateUtils.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/util/SyndDateUtils.java @@ -134,9 +134,11 @@ public class SyndDateUtils { result += Integer.valueOf(parts[idx]) * 3600000L; idx++; } - result += Integer.valueOf(parts[idx]) * 60000L; - idx++; - result += (Float.valueOf(parts[idx])) * 1000L; + if (parts.length >= 2) { + result += Integer.valueOf(parts[idx]) * 60000L; + idx++; + result += (Float.valueOf(parts[idx])) * 1000L; + } return result; } |