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; }