add nil value filter for buildConditions
This commit is contained in:
parent
667dcd039f
commit
f44f70acd8
|
@ -344,6 +344,10 @@ func buildConditions(engine *Engine, table *Table, bean interface{}, includeVers
|
|||
} else {
|
||||
continue
|
||||
}
|
||||
case reflect.Ptr:
|
||||
if fieldValue.IsNil() || !fieldValue.IsValid() {
|
||||
continue
|
||||
}
|
||||
default:
|
||||
val = fieldValue.Interface()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue