diff --git a/src/kits/tracker/FindPanel.cpp b/src/kits/tracker/FindPanel.cpp index 303f8e13e2..01227aa76e 100644 --- a/src/kits/tracker/FindPanel.cpp +++ b/src/kits/tracker/FindPanel.cpp @@ -2326,7 +2326,9 @@ FindPanel::RestoreWindowState(const BNode* node) fTemporaryCheck->SetValue(saveMoreOptions.temporary); fQueryName->SetModificationMessage(NULL); - FillCurrentQueryName(fQueryName, dynamic_cast(Window())); + FindWindow* findWindow = dynamic_cast(Window()); + if (findWindow != NULL) + FillCurrentQueryName(fQueryName, findWindow); // set modification message after checking the temporary check box, // and filling out the text control so that we do not always trigger