Fixed index out of range

pull/214/head
M66B 9 months ago
parent cfc1f665b0
commit 2fde15a52c

@ -88,8 +88,7 @@ public final class Duration {
if (first == '-' || first == '+') { if (first == '-' || first == '+') {
index++; index++;
} }
if (index >= value.length() || value.charAt(index) != 'P') {
if (value.charAt(index) != 'P') {
throw parseError(value); throw parseError(value);
} }

Loading…
Cancel
Save