Skip to content

Commit 1472533

Browse files
Copilotsbrunner
andcommitted
Fix type mismatch in ObjectMissingException constructor call
Cast requestJsonAttributes to PElement as required by ObjectMissingException constructor. All PObject implementations extend PAbstractObject which extends PElement, so the cast is safe. Co-authored-by: sbrunner <353872+sbrunner@users.noreply.github.com>
1 parent 18d4308 commit 1472533

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/mapfish/print/attribute/ReflectiveAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public Object getValue(
448448
// by either throwing MissingPropertyException for required attributes or
449449
// skipping optional attributes.
450450
if (pValue != null && !pValue.keys().hasNext()) {
451-
throw new ObjectMissingException(requestJsonAttributes, attributeName);
451+
throw new ObjectMissingException((PElement) requestJsonAttributes, attributeName);
452452
}
453453
}
454454
MapfishParser.parse(errorOnExtraParameters, pValue, value);

0 commit comments

Comments
 (0)