--- /media/sda5/tmp/pgadmin3-git/pgadmin3/pgadmin/schema/pgObject.cpp 2011-05-28 16:48:20.000000000 +0200 +++ /media/sda5/tmp/pgadmin3-git/changes/pgObject.cpp 2011-05-28 16:38:07.000000000 +0200 @@ -908,6 +908,9 @@ while (set.RowsLeft()) { wxString refname = set.GetVal(wxT("refname")); + if (refname.IsEmpty()) { + continue; + } wxString deptype = set.GetVal(wxT("deptype")); if (deptype == wxT("a")) deptype = _("auto");