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

JSON data dictionary throws NullPointerException #47

Closed
varunmulloli opened this Issue Oct 24, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@varunmulloli

varunmulloli commented Oct 24, 2015

I have a JSON data dictionary like this:

<citrus:json-data-dictionary id="sampleDD">
    <citrus:mappings>
        <citrus:mapping path="id" value="2" />
    </citrus:mappings>
</citrus:json-data-dictionary>

And my <send> action looks like this:

<send endpoint="sampleEndpoint">
    <message data-dictionary="sampleDD" type="json">
        <data>
            {
                "id": 1,
                "name": "abcd",
                "tag": null
            }
        </data>
    </message>
</send>

I presume that this is a valid JSON, even though one of the key has a value null. While running the code, I get an NPE.

@christophd

This comment has been minimized.

Member

christophd commented Nov 2, 2015

I was able reproduce this error, thanks! This is an issue with the null value indeed. Will fix this with 2.4 version. Thanks!

@christophd christophd closed this in 702c166 Nov 2, 2015

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