Skip to content

Workbook Evaluator bug fix on checking an IF without a third param#1176

Merged
tonyqus merged 2 commits into
nissl-lab:masterfrom
fred2020-net:master
Oct 11, 2023
Merged

Workbook Evaluator bug fix on checking an IF without a third param#1176
tonyqus merged 2 commits into
nissl-lab:masterfrom
fred2020-net:master

Conversation

@fred2020-net
Copy link
Copy Markdown
Contributor

evaluation stack not empty is throwed when using an IF without a third param

formula example:
=IF(C37="8E";"CH8E-1";IF(C37="8F";"CH8F-2"))

in case of FALSE of condition C37="8E" then the exception is thrown.

Solution found on looking at the source code:
https://svn.apache.org/repos/asf/poi/trunk/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java

Bug introduced in this commit:
e3ba38b#r126492380

@tonyqus tonyqus self-requested a review September 5, 2023 13:25
@fred2020-net
Copy link
Copy Markdown
Contributor Author

Hello @tonyqus
Do you plan to merge this pull request soon ?
Thanks for your support.

@tonyqus
Copy link
Copy Markdown
Member

tonyqus commented Sep 19, 2023

@fred2020-net Yeah, I'll review this ticket this week or next week.

But please understand that 2.7.0 is not a release happening soon. 2.6.2 is just released last week. Usually, it takes 3-5 month to have another release. So far, NPOI is still a free component under Apache 2.0 license. I use my spare time to maintain it and in other words, it's a hobby project.

If NPOI changes license to commercial in the future, the situation can be different. We will have promise on commercial clients and will have a fixed release cycle (for example, monthly release or even biweekly release).

@tonyqus
Copy link
Copy Markdown
Member

tonyqus commented Oct 11, 2023

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants