Skip to content

Commit

Permalink
handle condition definitions that don't have values (#632)
Browse files Browse the repository at this point in the history
fix for issue: #630
  • Loading branch information
rymorale authored May 20, 2021
1 parent ccf4bb6 commit ad8a261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AEPCore/Sources/rules/JSONRulesParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class JSONCondition: Codable {
}
return nil
case .matcher:
if let key = definition.key, let matcher = definition.matcher, let values = definition.values {
let values = definition.values ?? []
if let key = definition.key, let matcher = definition.matcher {
if values.count == 0 {
return convert(key: key, matcher: matcher, anyCodable: "")
}
Expand Down

0 comments on commit ad8a261

Please sign in to comment.