poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61236] Dynamically addAbstractNum in XWPFNumbering
Date Thu, 29 Jun 2017 16:34:28 GMT

--- Comment #2 from adasai90@gmail.com ---
(In reply to PJ Fanning from comment #1)
> Isn't abstractNum the param you pass in?
> public BigInteger addAbstractNum(XWPFAbstractNum abstractNum)
> Can't you ensure that your abstractNum has a non-null value for
> abstractNum.getAbstractNum()?
> Eg by using
> public XWPFAbstractNum(CTAbstractNum abstractNum)
> Could you provide a full sample of what you are trying to do?

abstractNum.getAbstractNum() is really null,i just want to addAbstractNum。 
Java Code allow abstractNum.getAbstractNum() has a null value,but in else
block, throw exception,So the else block is dead.

Thank you.
finally, i found this method to addAbstractNum, it's OK,

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message