Fix reset regole veto/pass in redis

This commit is contained in:
Samuele E. Locatelli
2019-06-07 18:21:37 +02:00
parent d0fc83b8d9
commit b2b392b88a
4 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -1133,7 +1133,7 @@ namespace GMW_data
bool answ = false;
// cerco se avessi già in redis un controllo particolare/linea attivo e il suo risultato...
string mHash = memLayer.ML.redHash($"lineePartVeto:{Postazione.currCodLinea}:{codParticolare}");
if (memLayer.ML.getRSV(mHash) != "")
if (memLayer.ML.getRSV(mHash) != null && memLayer.ML.getRSV(mHash) != "")
{
// recupero info...
bool.TryParse(memLayer.ML.getRSV(mHash), out answ);