GermanAlejo commented on PR #770:
URL: https://github.com/apache/poi/pull/770#issuecomment-2952860144

   I discovered this bug while using the library myself. The method 
setBulletStyle from XSLFTextParagraph class calls setBulletAutoNumber method, 
which expects a int as a parameter (startAt) this is hardcoded so minimun value 
allowed is 1, if the value is less than 1 then the method will throw 
IllegalArgumentException
   
   
![image](https://github.com/user-attachments/assets/8d49d2cd-7244-4914-9d37-7833da39b078)
   
   The problem is method setBulletStyle has a minimun hardcoded value of 0 when 
calling this method, which means that each time we call it with a 
AutoNumberingScheme argument it will always throw an IllegalArgumentException, 
this renders this method quite useless, changing the 0 by 1 would solve the 
issue.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to