From e99c35f69903160b5117105ed15517753f354452 Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Mon, 23 Jun 2014 14:40:16 +0200 Subject: [PATCH] fix deserializing of cached tags with empty key --- cache/binary/tags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/binary/tags.go b/cache/binary/tags.go index 8289a99..939f55a 100644 --- a/cache/binary/tags.go +++ b/cache/binary/tags.go @@ -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]