From fdec1eb068cfc5c87d5a31e6f2bf722caf6f5cae Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sun, 2 Dec 2018 13:26:17 +0100 Subject: [PATCH] trovbato problema in decodifica cache da REDIS; in fase di verifica... --- C-TRACK/barcode.aspx.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/C-TRACK/barcode.aspx.cs b/C-TRACK/barcode.aspx.cs index a098298..3c7beef 100644 --- a/C-TRACK/barcode.aspx.cs +++ b/C-TRACK/barcode.aspx.cs @@ -298,7 +298,14 @@ namespace C_TRACK Dictionary answ = new Dictionary(); if (memLayer.ML.isInCacheObject("comandiAmmessiBCode")) { - answ = (Dictionary)memLayer.ML.objCacheObj("comandiAmmessiBCode"); + try + { + answ = (Dictionary)memLayer.ML.objCacheObj("comandiAmmessiBCode"); + } + catch + { + answ = new Dictionary(); + } } return answ; }