adding an array size check at Parser for .ics files
This commit is contained in:
parent
6b79dac671
commit
59f9494753
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ class Parser {
|
|||
|
||||
for (part in parts) {
|
||||
val keyValue = part.split("=")
|
||||
if (keyValue.size <= 1) {
|
||||
continue
|
||||
}
|
||||
|
||||
val key = keyValue[0]
|
||||
val value = keyValue[1]
|
||||
if (key == FREQ) {
|
||||
|
|
Loading…
Reference in a new issue