keithwoodlock edited a comment on Dev Task MIFOSX-136

POST to https://localhost:8443/mifosng-provider/api/v1/journalentries with empty request body results in:

java.lang.NullPointerException
org.mifosplatform.accounting.api.infrastructure.impl.AccountingApiDataConversionServiceImpl.checkForUnsupportedParameters(AccountingApiDataConversionServiceImpl.java:47)

The JSON needs to be checked for null before attempting any conversion/serializating etc

if (StringUtils.isBlank(json)) { throw new InvalidJsonException(); }

see any implementation of AbstractFromApiJsonDeserializer in portfolio code.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to