From e6ea87f7f3e81c571b3aa74449c3ed77045eb40d Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Fri, 25 Nov 2022 17:18:06 +0100 Subject: [PATCH] fix crash se reparto nullo --- MP.SPEC/Components/SelFilterPODL.razor.cs | 5 ++++- MP.SPEC/Components/SelFilterXDL.razor.cs | 5 ++++- MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Pages/ODL.razor.cs | 10 +++++++++- MP.SPEC/Pages/PODL.razor.cs | 9 ++++++++- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 8 files changed, 29 insertions(+), 8 deletions(-) diff --git a/MP.SPEC/Components/SelFilterPODL.razor.cs b/MP.SPEC/Components/SelFilterPODL.razor.cs index 4d695682..7eb7cc18 100644 --- a/MP.SPEC/Components/SelFilterPODL.razor.cs +++ b/MP.SPEC/Components/SelFilterPODL.razor.cs @@ -33,7 +33,10 @@ namespace MP.SPEC.Components protected async Task getReparto() { var localReparto = await localStorage.GetItemAsync("reparto"); - selReparto = localReparto; + if (localReparto != null) + { + selReparto = localReparto; + } } protected bool hasOdl { diff --git a/MP.SPEC/Components/SelFilterXDL.razor.cs b/MP.SPEC/Components/SelFilterXDL.razor.cs index 22513174..edc7df66 100644 --- a/MP.SPEC/Components/SelFilterXDL.razor.cs +++ b/MP.SPEC/Components/SelFilterXDL.razor.cs @@ -119,7 +119,10 @@ namespace MP.SPEC.Components protected async Task getReparto() { var reparto = await localStorage.GetItemAsync("reparto"); - selReparto = reparto; + if (reparto != null) + { + selReparto = reparto; + } } #endregion Private Properties diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index 4e1384c1..246a39db 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2211.2516 + 6.16.2211.2517 diff --git a/MP.SPEC/Pages/ODL.razor.cs b/MP.SPEC/Pages/ODL.razor.cs index fac5f784..ee42bb26 100644 --- a/MP.SPEC/Pages/ODL.razor.cs +++ b/MP.SPEC/Pages/ODL.razor.cs @@ -106,7 +106,15 @@ namespace MP.SPEC.Pages protected async Task getReparto() { var reparto = await localStorage.GetItemAsync("reparto"); - selReparto = reparto; + if (reparto != null) + { + selReparto = reparto; + } + else + { + selReparto = "*"; + } + } protected async Task pgResetReq(bool doReset) diff --git a/MP.SPEC/Pages/PODL.razor.cs b/MP.SPEC/Pages/PODL.razor.cs index e483f7a3..c1318d4c 100644 --- a/MP.SPEC/Pages/PODL.razor.cs +++ b/MP.SPEC/Pages/PODL.razor.cs @@ -99,7 +99,14 @@ namespace MP.SPEC.Pages protected async Task getReparto() { var localReparto = await localStorage.GetItemAsync("reparto"); - reparto = localReparto; + if(reparto != null) + { + reparto = localReparto; + } + else + { + reparto = "*"; + } } protected async Task pgResetReq(bool doReset) diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index aa1fc65e..3ffb4c71 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2211.2516

+

Versione: 6.16.2211.2517


Note di rilascio:
  • diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt index 9f023408..c8ff85fd 100644 --- a/MP.SPEC/Resources/VersNum.txt +++ b/MP.SPEC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2211.2516 +6.16.2211.2517 diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml index b0a275b3..007daf07 100644 --- a/MP.SPEC/Resources/manifest.xml +++ b/MP.SPEC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2211.2516 + 6.16.2211.2517 https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html false