From 23df582d23a22a1105ee256895141e390ce9e829 Mon Sep 17 00:00:00 2001 From: Christian Rosewich Date: Tue, 14 Jul 2026 14:26:10 +0200 Subject: [PATCH] Potential fix for code scanning alert no. 5572: Dereferenced variable is always null Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .../GenFreeWin/Gen_FreeWin/ViewModels/PersonenViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GenFreeWin/GenFreeWin/Gen_FreeWin/ViewModels/PersonenViewModel.cs b/GenFreeWin/GenFreeWin/Gen_FreeWin/ViewModels/PersonenViewModel.cs index 820ae38bd..145c3f6ff 100644 --- a/GenFreeWin/GenFreeWin/Gen_FreeWin/ViewModels/PersonenViewModel.cs +++ b/GenFreeWin/GenFreeWin/Gen_FreeWin/ViewModels/PersonenViewModel.cs @@ -1270,7 +1270,7 @@ private void Delete() int PersInArb = PersonNr; Modul1.eLKennz = Sex_Text == "F" ? ELinkKennz.lkMother : ELinkKennz.lkFather; var ubgT = Modul1.Link_Famsuch(PersInArb, Modul1.eLKennz); - if (ubgT == null) + if (ubgT != null) { if (ubgT.Count > 10) {