From cc2a916716a1786ba137a42ddc7e47aefd086697 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 29 Jul 2012 17:33:08 +0200 Subject: [PATCH] Fix for an Issue #126 --- lib/techniques/union/use.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index cd98fbe6f..78670ccda 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -80,7 +80,7 @@ def __oneShotUnionUse(expression, unpack=True, limited=False): None) # Automatically patching last char trimming cases - if kb.chars.stop not in page and kb.chars.stop[:-1] in page: + if kb.chars.stop not in (page or "") and kb.chars.stop[:-1] in (page or ""): warnMsg = "automatically patching output having last char trimmed" singleTimeWarnMessage(warnMsg) page = page.replace(kb.chars.stop[:-1], kb.chars.stop)