View | Details | Raw Unified | Return to bug 44898
Collapse All | Expand All

(-)src/java/org/apache/poi/poifs/storage/RawDataBlock.java (-4 / +3 lines)
Lines 72-81 Link Here
72
            _eof = true;
72
            _eof = true;
73
        }
73
        }
74
        else if (count != blockSize) {
74
        else if (count != blockSize) {
75
        	// IOUtils.readFully will always read the
75
            // IOUtils.readFully will always read the requested number
76
        	//  requested number of bytes, unless it hits
76
            // of bytes unless it hits EOF.
77
        	//  an EOF
77
            // Original code set _eof = true here, but this causes "Cannot remove block" errors later.
78
            _eof = true;
79
            String type = " byte" + ((count == 1) ? ("")
78
            String type = " byte" + ((count == 1) ? ("")
80
                                                  : ("s"));
79
                                                  : ("s"));
81
80

Return to bug 44898