Skip to content

Commit

Permalink
Possible crash fix (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrentka authored Feb 26, 2025
1 parent bf344b2 commit 0b13130
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ struct CreatePDFAnnotationsDbRequest: DbRequest {
case FieldKeys.Item.Annotation.Position.fontSize where field.baseKey == FieldKeys.Item.Annotation.position:
rField.value = "\(annotation.fontSize ?? 0)"

default: break
default:
DDLogWarn("CreatePDFAnnotationsDbRequest: unknown field, assigning empty value - \(field.key)")
rField.value = ""
}

item.fields.append(rField)
Expand Down

0 comments on commit 0b13130

Please sign in to comment.