diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java b/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java index fbfd04d77a..def2af198d 100644 --- a/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java +++ b/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java @@ -369,7 +369,7 @@ public class NPOIFSFileSystem extends BlockStore for(int j=0; j<bigBlockSize.getXBATEntriesPerBlock(); j++) { int fatAt = xfat.getValueAt(j); - if(fatAt == POIFSConstants.UNUSED_BLOCK) break; + if(fatAt == POIFSConstants.UNUSED_BLOCK || fatAt == POIFSConstants.END_OF_CHAIN) break; readBAT(fatAt, loopDetector); } } |