From 8e1b8af6e7a74ba5046461ece08839c59f938d16 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 9 Nov 2013 13:50:44 -0400 Subject: [PATCH] fix crash on empty description Caused by bug fixed in 46cf00ffd835c989f565bda12ee61e202665e65b --- Logs/UUID.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logs/UUID.hs b/Logs/UUID.hs index ef1074e78b..154f86d512 100644 --- a/Logs/UUID.hs +++ b/Logs/UUID.hs @@ -56,7 +56,7 @@ fixBadUUID = M.fromList . map fixup . M.toList | otherwise = (k, v) where kuuid = fromUUID k - isbad = not (isuuid kuuid) && isuuid lastword + isbad = not (isuuid kuuid) && not (null ws) && isuuid lastword ws = words $ value v lastword = Prelude.last ws fixeduuid = toUUID lastword