Fixed IndexOutOfBoundsException in parseTimeString

This commit is contained in:
daniel oeh 2014-12-03 16:04:30 +01:00
parent 604d04ae21
commit 1173b67049
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}