Prevent a crash occuring if the Hint menu option is selected on Mac at an inappropria...
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Wed, 14 Jan 2009 10:07:55 +0000 (10:07 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Wed, 14 Jan 2009 10:07:55 +0000 (10:07 +0000)
attempts to disable the menu option on that platform get ignored.

git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7550 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/frm/frmHint.cpp

index 1b172c5ab1cb6270eb9c245a84b19a775aa0bee1..0cde70b1e583280354a351fcb933e132945a67c0 100644 (file)
@@ -464,7 +464,8 @@ hintFactory::hintFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *too
 
 wxWindow *hintFactory::StartDialog(frmMain *form, pgObject *obj)
 {
-    obj->ShowHint(form, true);
+    if (obj)
+        obj->ShowHint(form, true);
     return 0;
 }