AstView error with empty source
@@ -52,6 +52,9 @@ class AstView(ui_utils.TreeFrame):
self._clear_tree()
+ if self._current_source.strip() == "":
+ return
+
try:
root = ast_utils.parse_source(self._current_source)
selected_ast_node = _find_closest_containing_node(root, selection)
