From 24bb0ff39a13915eff9dedad66910e4307677823 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Mon, 21 Mar 2016 23:49:01 -0400 Subject: [PATCH] Fix issue in which implant editor did not spawn if no implant sets --- gui/setEditor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/setEditor.py b/gui/setEditor.py index eed2afa1e..293ff5c76 100644 --- a/gui/setEditor.py +++ b/gui/setEditor.py @@ -39,8 +39,9 @@ class ImplantSetEditor(BaseImplantEditorView): def getImplantsFromContext(self): sIS = service.ImplantSets.getInstance() set = self.Parent.getActiveSet() - - return sIS.getImplants(set.ID) + if set: + return sIS.getImplants(set.ID) + return [] def addImplantToContext(self, item): sIS = service.ImplantSets.getInstance()