StorageCache NullRefernceException

Topics: NetSqlAzMan Core
Aug 14, 2013 at 8:19 AM
Hello.
We have long time use NetSQLAzMan v3.6.0.15.
Everything works fine until it began to add authorization with parameters ValidFrom and ValidTo.

In some cases in method GetAuthorizedItems in class StorageCache throwing an error NullRefernceException.

The error occurs when to the Role added ApplicationGroup with specified ValiTo and not specified ValidFrom.

After a detailed investigation the error occurs in a code of the class StorageCache
             authz = from a in item.Authorizations
                     where String.Equals (a.Item.Name, item.Name, StringComparison.OrdinalIgnoreCase) &&
                     (a.SidWhereDefined == WhereDefined.Store | | a.SidWhereDefined == WhereDefined.Application) &&
                     (a.ValidFrom == null && a.ValidTo == null | |
                     validFor> = a.ValidFrom.Value && a.ValidTo == null | |
                     validFor <= a.ValidTo.Value && a.ValidFrom == null | |
                     validFor> = a.ValidFrom && validFor <= a.ValidTo.Value) &&
                     a.AuthorizationType! = AuthorizationType.Neutral
                     select a;
Could you correct this error.