diff --git a/MP.Data/MP.Data.csproj b/MP.Data/MP.Data.csproj
index 18ebdfc5..1f4f3bf4 100644
--- a/MP.Data/MP.Data.csproj
+++ b/MP.Data/MP.Data.csproj
@@ -21,7 +21,7 @@
-
+
@@ -30,10 +30,10 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
\ No newline at end of file
diff --git a/MP.SPEC/Components/SelFilterXDL.razor.cs b/MP.SPEC/Components/SelFilterXDL.razor.cs
index 039b0c0b..1d5b96a5 100644
--- a/MP.SPEC/Components/SelFilterXDL.razor.cs
+++ b/MP.SPEC/Components/SelFilterXDL.razor.cs
@@ -76,7 +76,7 @@ namespace MP.SPEC.Components
protected async Task getReparto()
{
string keyStor = "reparto";
- string localReparto = await localStorage.GetItemAsync(keyStor);
+ string localReparto = await localStorage.GetItemAsync(keyStor) ?? "";
if (!string.IsNullOrEmpty(localReparto))
{
selReparto = localReparto;
diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs
index 4745597d..8a971750 100644
--- a/MP.SPEC/Data/MpDataService.cs
+++ b/MP.SPEC/Data/MpDataService.cs
@@ -329,7 +329,7 @@ namespace MP.SPEC.Data
// cerco in cache redis...
string redKeyArtUsed = $"{Utils.redKeyArtUsed}:{codArticolo}";
string redKeyTabCheckArt = Utils.redKeyTabCheckArt;
- string rawData = redisDb.StringGet(redKeyArtUsed);
+ var rawData = redisDb.StringGet(redKeyArtUsed);
if (!string.IsNullOrEmpty(rawData))
{
bool.TryParse(rawData, out answ);
@@ -340,11 +340,11 @@ namespace MP.SPEC.Data
try
{
// cerco in cache se ci sia la tabella con gli articoli impiegati...
- string rawTable = redisDb.StringGet(redKeyTabCheckArt);
+ var rawTable = redisDb.StringGet(redKeyTabCheckArt);
List? artList = new List();
if (!string.IsNullOrEmpty(rawTable))
{
- artList = JsonConvert.DeserializeObject>(rawTable);
+ artList = JsonConvert.DeserializeObject>($"{rawTable}");
}
// rileggo...
if (artList == null || artList.Count == 0)
diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index 8f432bf4..f23b909c 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -45,6 +45,7 @@
+
diff --git a/MP.SPEC/Pages/ODL.razor.cs b/MP.SPEC/Pages/ODL.razor.cs
index 5c291bfc..9c6414e0 100644
--- a/MP.SPEC/Pages/ODL.razor.cs
+++ b/MP.SPEC/Pages/ODL.razor.cs
@@ -90,7 +90,7 @@ namespace MP.SPEC.Pages
protected async Task getReparto()
{
string keyStor = "reparto";
- string localReparto = await localStorage.GetItemAsync(keyStor);
+ string localReparto = await localStorage.GetItemAsync(keyStor)??"";
if (!string.IsNullOrEmpty(localReparto))
{
selReparto = localReparto;
diff --git a/MP.SPEC/Pages/PODL.razor.cs b/MP.SPEC/Pages/PODL.razor.cs
index a9b0f7b9..689c44f7 100644
--- a/MP.SPEC/Pages/PODL.razor.cs
+++ b/MP.SPEC/Pages/PODL.razor.cs
@@ -90,7 +90,7 @@ namespace MP.SPEC.Pages
protected async Task getReparto()
{
string keyStor = "reparto";
- string localReparto = await localStorage.GetItemAsync(keyStor);
+ string localReparto = await localStorage.GetItemAsync(keyStor) ?? "";
if (!string.IsNullOrEmpty(localReparto))
{
selReparto = localReparto;