Skip to content

Commit a3b4557

Browse files
committed
Covered Edge Case
1 parent da620e9 commit a3b4557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/auth0/utils/HttpResponseHeadersUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public static TokenQuotaBucket parseQuota(String tokenQuota) {
6565
}
6666
}
6767

68-
if (attributes[0].contains("per_hour")) {
68+
if (attributes.length >0 && attributes[0].contains("per_hour")) {
6969
perHour = new TokenQuotaLimit(quota, remaining, time);
70-
} else if (attributes[0].contains("per_day")) {
70+
} else if (attributes.length >0 && attributes[0].contains("per_day")) {
7171
perDay = new TokenQuotaLimit(quota, remaining, time);
7272
}
7373
}

0 commit comments

Comments
 (0)