Skip to content

Commit

Permalink
Fix nil pointer deref in setQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Jan 24, 2024
1 parent 6d9f9e2 commit 4a83279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ func (cmd *baseCommand) setQuery(policy *QueryPolicy, wpolicy *WritePolicy, stat
var ctxSize int

filterExpression := policy.FilterExpression
if filterExpression == nil {
if filterExpression == nil && wpolicy != nil {
filterExpression = wpolicy.FilterExpression
}

Expand Down

0 comments on commit 4a83279

Please sign in to comment.