Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XmlViewWriter.writeMeta throws NPE #74

Open
ceharris opened this issue Aug 28, 2019 · 0 comments
Open

XmlViewWriter.writeMeta throws NPE #74

ceharris opened this issue Aug 28, 2019 · 0 comments

Comments

@ceharris
Copy link
Member

If the value associated with the meta in the view is null, we should be generating an empty element, just as we do for any other null value.

Suggest XmlViewWriter.writeMeta should be implemented as:

    if (event.getValue() == null) {
      writeEmptyElement(event.getName(),
          XmlViewConstants.META_NAMESPACE, XmlViewConstants.NULL_QNAME);
    }
    else {
      writeAttributeString(event.getName(),
          XmlViewConstants.META_NAMESPACE, event.getValue().toString());
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant