Skip to content
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

BigDecimal Type Problem #26

Open
baocaixue opened this issue Dec 27, 2019 · 0 comments
Open

BigDecimal Type Problem #26

baocaixue opened this issue Dec 27, 2019 · 0 comments
Labels

Comments

@baocaixue
Copy link

Hi, millij. I have a pojo, and it have BigDecimal field. But, if this field in excel is empty, that got a Exception of :

org.apache.commons.beanutils.ConversionException: No value specified for 'BigDecimal'
	at org.apache.commons.beanutils.converters.AbstractConverter.handleMissing(AbstractConverter.java:328)
	at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:149)
	at org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:61)
	at org.apache.commons.beanutils.BeanUtilsBean.convert(BeanUtilsBean.java:1079)
	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1012)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:454)
	at io.github.millij.poi.util.Spreadsheet.rowAsBean(Spreadsheet.java:186)
	at io.github.millij.poi.ss.handler.RowContentsHandler.afterRowEnd(RowContentsHandler.java:73)

And i think that it should be null if excel field is empty.

@millij millij added the bug label Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants