aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-07-10 11:21:21 +0000
committerPJ Fanning <fanningpj@apache.org>2022-07-10 11:21:21 +0000
commit536537e3607b66b2620dc29ab825bb9973228020 (patch)
tree8f8ed3528a1583e3585696b3c44fd3d25101af15 /poi/src
parent0a283a36c85a8ae25201e7e7bbe3c0806cf3e3b2 (diff)
downloadpoi-536537e3607b66b2620dc29ab825bb9973228020.tar.gz
poi-536537e3607b66b2620dc29ab825bb9973228020.zip
try to fix tests - disabling 2 that need investigation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src')
-rw-r--r--poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
index a08907989d..55621d9095 100644
--- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
+++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
@@ -707,7 +707,7 @@ public final class HSSFCellStyle implements CellStyle, Duplicatable {
@Override
public void setFillForegroundColor(org.apache.poi.ss.usermodel.Color color)
{
- if (color == null || color instanceof HSSFColor) {
+ if (color instanceof HSSFColor) {
short index2 = ((HSSFColor)color).getIndex2();
if (index2 != -1) setFillForegroundColor(index2);
} else if (color != null) {