aboutsummaryrefslogtreecommitdiff
path: root/Logs/UUID.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-11-09 13:50:44 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-11-09 13:50:44 -0400
commit77acd08ea1422daf75d94dd6c4bb29e6c799c427 (patch)
tree5f1addc67e2480c3c0a33ae24a47807c483957f6 /Logs/UUID.hs
parent4807612214df574e1dd11dff68c7c55dbff73108 (diff)
fix crash on empty description
Diffstat (limited to 'Logs/UUID.hs')
-rw-r--r--Logs/UUID.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Logs/UUID.hs b/Logs/UUID.hs
index ef1074e78..154f86d51 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