Handle nulls inside of content arrays
Issue #71
wontfix
e.g. {"type":"paragraph","content":[null,
- Old
Error Messages: [ADF validation error: incoming adf does not comply with Atlassian Document Format])]]
- New
Error Messages: [com.atlassian.adf.model.ex.AdfException$UnexpectedRuntimeException: Caught unexpected runtime exception: java.lang.NullPointerException (path: doc[0].paragraph[0])])]]
There’s no valid reason for nulls here, so lets ignore them instead of throwing unexpected exceptions.
Comments (2)
-
reporter -
reporter - changed status to wontfix
- Log in to comment
Actually on second thought I think this is fine, and messing around with null handling isn’t worth it.
Also, the path to the bad object is clearly provided (
path: doc[0].paragraph[0]
) so there won’t be much confusion here.