Hi Everybody,
I have a code piece, what works good in debug mode, but not in release mode. I think it should generate an exception in debug mode also, but it doesn't.
If szf.GetString("IdoszakielszIN")="I" Then
sb.Append($"
<invoiceDeliveryPeriodStart>${szf.GetString("Idoszakkezdete")}</invoiceDeliveryPeriodStart>
<invoiceDeliveryPeriodEnd>${szf.GetString("Idoszakvege")}</invoiceDeliveryPeriodEnd>
<invoiceAccountingDeliveryDate>${szf.GetString("Idoszakvege")}</invoiceAccountingDeliveryDate>
"$)
End If
The value of szf.GetString("IdoszakielszIN") is null. So
in debug mode the compare null="I" is valid and the result is false, in release mode generate an exception ((NullPointerException) java.lang.NullPointerException).
I use postgres database and the szf.GetString("IdoszakielszIN") resulted a real null, not a string converted 'null'.
Is it a bug, or normal?