If a value on a POJO record is null, the class BeanPropertiesPreparedStatementProvider throws an NPE:
java.lang.NullPointerException
at org.jeasy.batch.jdbc.BeanPropertiesPreparedStatementProvider.prepareStatement(BeanPropertiesPreparedStatementProvider.java:113)
at org.jeasy.batch.jdbc.JdbcRecordWriter.writeRecords(JdbcRecordWriter.java:80)
at org.jeasy.batch.core.job.BatchJob.writeBatch(BatchJob.java:251)
at org.jeasy.batch.core.job.BatchJob.call(BatchJob.java:112)
at org.jeasy.batch.core.job.BatchJob.call(BatchJob.java:54)
I believe that it should check if the value is null and, otherwise, try to get the value type.
If a value on a POJO record is null, the class BeanPropertiesPreparedStatementProvider throws an NPE:
I believe that it should check if the value is null and, otherwise, try to get the value type.