test integration fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ad72f60ab6
commit
fb28b14d48
@ -401,11 +401,13 @@ public class CopyCompare
|
|||||||
final String name,
|
final String name,
|
||||||
final DocumentInputStream stream)
|
final DocumentInputStream stream)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
// create the directories to the document
|
||||||
|
final DirectoryEntry de = getPath(poiFs, path);
|
||||||
|
// check the parameters after the directories have been created
|
||||||
if (stream == null || name == null) {
|
if (stream == null || name == null) {
|
||||||
// Empty directory
|
// Empty directory
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final DirectoryEntry de = getPath(poiFs, path);
|
|
||||||
final ByteArrayOutputStream out = new ByteArrayOutputStream();
|
final ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||||
int c;
|
int c;
|
||||||
while ((c = stream.read()) != -1) {
|
while ((c = stream.read()) != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user