diff --git a/MultiTool.Form/frmConfig.vb b/MultiTool.Form/frmConfig.vb index 893991f..6d1de6a 100644 --- a/MultiTool.Form/frmConfig.vb +++ b/MultiTool.Form/frmConfig.vb @@ -192,18 +192,22 @@ Public Class frmConfig Private Sub GridViewTables_FocusedRowChanged(sender As Object, e As Views.Base.FocusedRowChangedEventArgs) Handles GridViewTables.FocusedRowChanged Try If GridViewTables.FocusedRowHandle < 0 Then + Logger.Debug("No row selected. Exiting.") Exit Sub End If Dim oRow As DataRow = GridViewTables.GetDataRow(GridViewTables.FocusedRowHandle) If oRow Is Nothing Then + Logger.Debug("Invalid row handle. Exiting.") Exit Sub End If Dim oTableId = oRow.Item("GUID") + Logger.Debug("Loading Items for Table [{0}]", oTableId) TBMT_TEMPLATE_ITEMSTableAdapter.Fill(DS_DD_ECM.TBMT_TEMPLATE_ITEMS, oTableId) Catch ex As Exception + Logger.Error(ex) FormHelper.ShowError(ex, "Laden der Tabelle") End Try End Sub