adding an array size check at Parser for .ics files

This commit is contained in:
tibbi 2019-12-02 20:38:45 +01:00
parent 6b79dac671
commit 59f9494753

View file

@ -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) {