From: Dominik Stadler Date: Tue, 24 Nov 2015 09:10:27 +0000 (+0000) Subject: Remove useless double check on null introduced with the previous bugfix X-Git-Tag: REL_3_14_BETA1~80 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf3e8364bef64c4713242be54a5e62abd3bd7764;p=poi.git Remove useless double check on null introduced with the previous bugfix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716082 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java index 8631833653..93c8da16f4 100644 --- a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java +++ b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java @@ -778,9 +778,7 @@ public final class InternalWorkbook { if (linkTable != null) { // also tell the LinkTable about the removed sheet //index hasn't change in the linktable - if (linkTable != null) { - linkTable.removeSheet(sheetIndex); - } + linkTable.removeSheet(sheetIndex); } }