[github-357] fix equals check in CellNumberFormatter. Thanks to XenoAmess. This closes #357

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902750 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-07-15 21:10:32 +00:00
parent 2c479b4967
commit 6e34a3cebe
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ public class CellNumberFormatter extends CellFormatter {
int modEndPos = delEndPos + adjust;
if (modPos < modEndPos) {
if ("".equals(nextChange.getToAdd())) {
if (nextChange.getToAdd() != null && nextChange.getToAdd().length() == 0) {
output.delete(modPos, modEndPos);
}
else {