aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-01-06 09:10:41 +0000
committerDominik Stadler <centic@apache.org>2021-01-06 09:10:41 +0000
commiteba33ddb6f2f415ef7c008f5b32134a16e07f7b5 (patch)
tree5be6d58ee35e6f1b2daf54ee68973af44ffa2e22 /src/java/org/apache/poi/poifs
parent7aa6b06085272f174a82a1a69852c7e1eb5def36 (diff)
downloadpoi-eba33ddb6f2f415ef7c008f5b32134a16e07f7b5.tar.gz
poi-eba33ddb6f2f415ef7c008f5b32134a16e07f7b5.zip
Include file-name in EmptyFileException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885192 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/poifs')
-rw-r--r--src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java b/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java
index 20fc398e27..94c68a6379 100644
--- a/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java
+++ b/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java
@@ -1,4 +1,3 @@
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
@@ -15,8 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
-
package org.apache.poi.poifs.filesystem;
import java.io.ByteArrayOutputStream;
@@ -213,7 +210,7 @@ public class POIFSFileSystem extends BlockStore
// Initialize the datasource
if (srcFile != null) {
if (srcFile.length() == 0)
- throw new EmptyFileException();
+ throw new EmptyFileException(srcFile);
FileBackedDataSource d = new FileBackedDataSource(srcFile, readOnly);
channel = d.getChannel();