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
https://bz.apache.org/bugzilla/show_bug.cgi?id=61236

--- 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,
https://stackoverflow.com/questions/44433347/apache-poi-numbered-list

-- 
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


Mime
View raw message