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

NPE on Encoding Extension with CodeableConcept when TRACE logging #428

Closed
bdenton opened this Issue Aug 16, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@bdenton
Collaborator

bdenton commented Aug 16, 2016

With TRACE level logging enabled, a NPE is thrown when JSON encoding an ExtensionDt containing a CodeableConceptDt (stack trace attached).

The problem seems to be with BaseParser.CompositeChildElement. The constructor calls buildPath() then TRACE logging. the buildPath() method does not work right when myResDef and myParent are both null.

I tried to create a Surefire test to demonstrate the bug but could not figure out how to enable TRACE logging inside Surefire.

cheers,
Bill Denton
Akana, Inc.

patient-npe-0815.txt

jamesagnew added a commit that referenced this issue Aug 23, 2016

@jamesagnew

This comment has been minimized.

Show comment
Hide comment
@jamesagnew

jamesagnew Aug 23, 2016

Owner

Hi Bill, thanks for reporting!

Checking in a fix shortly..

FYI- To set the logging level in the unit test environment you just need to edit the logback-test.xml file in the same project as the unit test. There's also a programatic way that I've done in the unit test.

Owner

jamesagnew commented Aug 23, 2016

Hi Bill, thanks for reporting!

Checking in a fix shortly..

FYI- To set the logging level in the unit test environment you just need to edit the logback-test.xml file in the same project as the unit test. There's also a programatic way that I've done in the unit test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment