diff --git a/src/kits/tracker/FindPanel.cpp b/src/kits/tracker/FindPanel.cpp index ade25b72af..a4d8e78e3b 100644 --- a/src/kits/tracker/FindPanel.cpp +++ b/src/kits/tracker/FindPanel.cpp @@ -1548,6 +1548,9 @@ FindPanel::GetByNamePredicate(BQuery* query) const ASSERT(textControl != NULL); + if (textControl == NULL) + return; + query->PushAttr("name"); query->PushString(textControl->TextView()->Text(), true);