--- a/eric6/Debugger/DebugViewer.py Wed Dec 30 18:24:42 2020 +0100 +++ b/eric6/Debugger/DebugViewer.py Thu Dec 31 17:42:50 2020 +0100 @@ -702,7 +702,10 @@ # nothing to do return - currentParent = currentItem.parent() + if currentItem: + currentParent = currentItem.parent() + else: + currentParent = None if currentParent is None: # current is a debugger item self.__debuggersList.setCurrentItem(debuggerItem)