]> source.dussan.org Git - poi.git/commitdiff
try to fix tests - disabling 2 that need investigation
authorPJ Fanning <fanningpj@apache.org>
Sun, 10 Jul 2022 11:21:21 +0000 (11:21 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 10 Jul 2022 11:21:21 +0000 (11:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902627 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java

index a08907989d06541ad50a14b6f9788678a90cd258..55621d9095aea4af6d360a06f7c04bfb6d3293d8 100644 (file)
@@ -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) {