SetControlValues_FromControl: fix connection id check

This commit is contained in:
Jonathan Jenne 2022-08-16 12:13:25 +02:00
parent 36dad58137
commit fe92ae876e

View File

@ -1546,10 +1546,10 @@ Public Class frmValidator
Dim oControlname2Set = oRow.Item("NAME")
LOGGER.Debug($"Workin on SetControLValue for {oControlname2Set} ...")
Dim oConnectionId = NotNull(oRow.Item("CONNECTION_ID"), 0)
Dim oConnectionId = NotNull(oRow.Item("CONNECTION_ID"), -1)
Dim oControlDataSql = NotNull(oRow.Item("SET_CONTROL_DATA"), String.Empty)
If oConnectionId = 0 Or oControlDataSql = String.Empty Then
If oConnectionId = -1 Or oControlDataSql = String.Empty Then
LOGGER.Debug($"Error: Check CoNN ID and SQL on NULL VALUES!")
Exit Sub
End If