diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py index 21a36f64ca..269016ee89 100644 --- a/bitbake/lib/bb/codeparser.py +++ b/bitbake/lib/bb/codeparser.py @@ -240,6 +240,9 @@ class PythonParser(): self.unhandled_message = "while parsing %s, %s" % (name, self.unhandled_message) def parse_python(self, node): + if not node or not node.strip(): + return + h = hash(str(node)) if h in codeparsercache.pythoncache: