Skip to content

Commit 61e3f26

Browse files
Merge pull request #2929 from bestlong/fix-2928
fix: keywords search dailog AttributeError: 'NoneType' object has no attribute 'name'
2 parents 83a5b60 + e1d700f commit 61e3f26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/robotide/ui/keywordsearch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ def _get_search_text(self):
291291
return self._search_control.GetValue().lower()
292292

293293
def _update_keyword_selection(self):
294-
if self._keywords and self._last_selected_kw not in self._keywords:
294+
if not self._keywords:
295+
return
296+
if self._last_selected_kw is None or self._last_selected_kw not in self._keywords:
295297
self._last_selected_kw = self._keywords[0]
296298
self._update_details()
297299

0 commit comments

Comments
 (0)