Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mjarkk committed Nov 13, 2024
1 parent 9b71ee1 commit d95271a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,10 @@ func compareFieldsBase(ctx *ValidatorCtx) (SizeCompareStatus, ConvertStatus) {
}

other := ctx.Field(ctx.Args[0])
if other == nil {
return 0, Invalid
}

other.UnwrapPointer()

if !other.HasValue() {
Expand Down

0 comments on commit d95271a

Please sign in to comment.