From 4d7d9b92033f297153245a05da871fb69b2e3309 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Fri, 15 Sep 2006 20:45:52 +0000 Subject: [PATCH] Alpha code for Secret Persistence Policy. In Progress. --- CASA/policy/PersistencePol.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/CASA/policy/PersistencePol.cs b/CASA/policy/PersistencePol.cs index 6b15334a..9573d60a 100644 --- a/CASA/policy/PersistencePol.cs +++ b/CASA/policy/PersistencePol.cs @@ -132,12 +132,15 @@ public class PersistencePol : CASAPol ArrayList al = new ArrayList(); //enumerate all secrets loaded - IDictionaryEnumerator idEnum = htSecretPolicys.GetEnumerator(); - while (idEnum.MoveNext()) + if (htSecretPolicys != null) { - string sSecretID = (string)idEnum.Key; - al.Add(sSecretID); - } + IDictionaryEnumerator idEnum = htSecretPolicys.GetEnumerator(); + while (idEnum.MoveNext()) + { + string sSecretID = (string)idEnum.Key; + al.Add(sSecretID); + } + } return al; }