From b3de866d1498f8a6470839d6d321712aa72b4035 Mon Sep 17 00:00:00 2001 From: Gianmarco Mucciariello Date: Mon, 23 Jun 2025 15:48:41 +0200 Subject: [PATCH] aggiunto controllo per evitare troppi log quando quella stored non manca --- .../ViewModels/AppViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/root/ContrattoSEI/GestoreTrimestrale_branch_applyingMVVM/ViewModels/AppViewModel.cs b/root/ContrattoSEI/GestoreTrimestrale_branch_applyingMVVM/ViewModels/AppViewModel.cs index cf641f9..88a19b9 100644 --- a/root/ContrattoSEI/GestoreTrimestrale_branch_applyingMVVM/ViewModels/AppViewModel.cs +++ b/root/ContrattoSEI/GestoreTrimestrale_branch_applyingMVVM/ViewModels/AppViewModel.cs @@ -1447,6 +1447,11 @@ namespace GestoreTrimestrale.ViewModels private void ObtainLogs() { string getLogsProcedure = CACHE.getLogsProcedure; + if (string.IsNullOrEmpty(getLogsProcedure)) + { + logger.Warn("getLogsProcedure is null or empty"); + return; + } DataTable result = null; while (gestoreThread?.IsAlive == true) {