Handle nulls inside of content arrays

Issue #71 wontfix
Craig Lawrence created an issue

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)

  1. Craig Lawrence reporter

    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.

  2. Log in to comment