diff --git a/Aviso/AvisoStatusFunctions.vb b/Aviso/AvisoStatusFunctions.vb index f2dbcb4..65f042f 100644 --- a/Aviso/AvisoStatusFunctions.vb +++ b/Aviso/AvisoStatusFunctions.vb @@ -2174,7 +2174,7 @@ ELSE_ATILLA: Dim DsId = "" Dim DsId2 = "" Dim frist = "" - Dim gestellungsadresse = "" + Dim gestellungsadresse = "" Dim found = False Select Case s.tblSnd_Abfertigungsart_ID Case 5, 6, 18, 24, 32, 33, 34, 37, 40 'Versand @@ -2294,7 +2294,7 @@ ELSE_ATILLA: If cnt = 1 Then ' wurde nicht erhöht -> keine Einträge SendungslistTXT = "" End If - If KUNDE_ERW.EmailFreigabeSendungsListe Then hText = hText.Replace("%Platzhalter%", SendungslistTXT) + If KUNDE_ERW IsNot Nothing AndAlso KUNDE_ERW.EmailFreigabeSendungsListe Then hText = hText.Replace("%Platzhalter%", SendungslistTXT) End If End If End Select