diff --git a/pgadmin/frm/frmQuery.cpp b/pgadmin/frm/frmQuery.cpp index 6ace169..b3df194 100644 --- a/pgadmin/frm/frmQuery.cpp +++ b/pgadmin/frm/frmQuery.cpp @@ -1643,7 +1643,10 @@ void frmQuery::OpenLastFile() setExtendedTitle(); SetLineEndingStyle(); UpdateRecentFiles(true); - mainForm->UpdateAllRecentFiles(); + if(mainForm != NULL) + { + mainForm->UpdateAllRecentFiles(); + } } }