fix deserializing of cached tags with empty key

master
Oliver Tonnhofer 2014-06-23 14:40:16 +02:00
parent f30e4f35f8
commit e99c35f699
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ func tagsFromArray(arr []string) element.Tags {
panic("missing tag for codepoint")
}
result[tag.Key] = tag.Value
} else if arr[i][0] < 32 {
} else if len(arr[i]) > 0 && arr[i][0] < 32 {
result[codePointToCommonKey[arr[i][0]]] = arr[i][1:]
} else {
result[arr[i]] = arr[i+1]