Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Update JsonJdbcQueryContent.java #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

camac
Copy link

@camac camac commented May 16, 2016

When returning a jdbc query via json through the Jdbcqueryrest service, there is no check for null when writing the column values.
This means if any column values are null it will throw a null pointer exception and get an Error 500.
This can be handled by checking for null and outputting null , or alternatively you can just ignore it and not output any property ? in any case, it should try to avoid the null pointer exception.

When returning a jdbc query via json through the Jdbcqueryrest service, there is no check for null when writing the column values.
This means if any column values are null it will throw a null pointer exception and get an Error 500.
This can be handled by checking for null and outputting null , or alternatively you can just ignore it I guess? in any case it should try to avoid the null pointer exception.
@padraic-edwards
Copy link
Contributor

Hi Cameron, we'll review this fix and look to get it included in a post FP8 OpenNTF extlib release.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants