eda:gui:TableEditor::Select; fix crash if TableEditor is not properly initialized.
authorRejean Loyer <rejean.loyer@gmail.com>
Sun, 12 Aug 2012 14:01:11 +0000 (10:01 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sun, 12 Aug 2012 14:58:57 +0000 (10:58 -0400)
eda/libeda/src/gui/TableEditor.ec

index ad59117..390406d 100644 (file)
@@ -702,7 +702,7 @@ public:
       bool result;
       DebugLn("TableEditor::Select");
       // EDA is now set up so that Next()/Prev() will work with sysID = , but not with Find() (As Find() will return a particular set of results)
-      if(idField && (editRow.sysID = id, !editRow.nil))// && editRow.Find(idField, middle, nil, id))
+      if(idField && editRow && (editRow.sysID = id, !editRow.nil))// && editRow.Find(idField, middle, nil, id))
       {
          selectedId = editRow.sysID;
          EditLoad();