diff --git a/gui/itemStats.py b/gui/itemStats.py index 16d1ac581..5340165bf 100644 --- a/gui/itemStats.py +++ b/gui/itemStats.py @@ -571,6 +571,8 @@ class ItemAffectedBy (wx.Panel): for fit, afflictors in cont.getAfflictions(attrName).iteritems(): for afflictor, modifier, amount in afflictors: + if afflictor.item is None: + continue if afflictor.item.name not in things: things[afflictor.item.name] = [type(afflictor), set(), set()]