cpp domain: Fix assert when describing unreferenced symbol.

This commit is contained in:
Alan M. Carroll 2018-02-22 08:30:46 -06:00 committed by Jakob Lykke Andersen
parent b1e1fd0822
commit 6441853e66

View File

@ -6239,7 +6239,7 @@ class CPPDomain(Domain):
if target is None:
return None
parentKey = node.get("cpp:parent_key", None)
if parentKey is None:
if parentKey is None or len(parentKey) <= 0:
return None
rootSymbol = self.data['root_symbol']