Merge pull request #59 from BrendanLouis1223/patch-1

fix: dont process when filterTerm.Values is null
This commit is contained in:
Biarity 2019-04-14 08:50:34 +10:00 committed by GitHub
commit 9f6163d318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,8 @@ namespace Sieve.Services
propertyValue = Expression.PropertyOrField(propertyValue, part); propertyValue = Expression.PropertyOrField(propertyValue, part);
} }
if (filterTerm.Values == null) continue;
foreach (var filterTermValue in filterTerm.Values) foreach (var filterTermValue in filterTerm.Values)
{ {