poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1716082 - /poi/trunk/src/java/org/apache/poi/hssf/model/InternalWorkbook.java
Date Tue, 24 Nov 2015 09:10:27 GMT
Author: centic
Date: Tue Nov 24 09:10:27 2015
New Revision: 1716082

URL: http://svn.apache.org/viewvc?rev=1716082&view=rev
Log:
Remove useless double check on null introduced with the previous bugfix

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/model/InternalWorkbook.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/model/InternalWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/model/InternalWorkbook.java?rev=1716082&r1=1716081&r2=1716082&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/model/InternalWorkbook.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/model/InternalWorkbook.java Tue Nov 24 09:10:27
2015
@@ -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);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message