mirror of https://github.com/apache/poi.git
bug 62624 -- fix recursion
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1845284 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a29586e45e
commit
c956084b0d
|
@ -352,13 +352,8 @@ public class VBAMacroReader implements Closeable {
|
|||
DocumentNode document = (DocumentNode)entry;
|
||||
DocumentInputStream dis = new DocumentInputStream(document);
|
||||
readProjectProperties(dis, moduleNameMap, modules);
|
||||
} else {
|
||||
for (Entry child : node) {
|
||||
if (child instanceof DirectoryNode) {
|
||||
findProjectProperties((DirectoryNode)child, moduleNameMap, modules);
|
||||
}
|
||||
}
|
||||
|
||||
} else if (entry instanceof DirectoryNode) {
|
||||
findProjectProperties((DirectoryNode)entry, moduleNameMap, modules);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -369,13 +364,8 @@ public class VBAMacroReader implements Closeable {
|
|||
DocumentNode document = (DocumentNode)entry;
|
||||
DocumentInputStream dis = new DocumentInputStream(document);
|
||||
readNameMapRecords(dis, moduleNameMap, modules.charset);
|
||||
} else {
|
||||
for (Entry child : node) {
|
||||
if (child instanceof DirectoryNode) {
|
||||
findModuleNameMap((DirectoryNode)child, moduleNameMap, modules);
|
||||
}
|
||||
}
|
||||
|
||||
} else if (entry.isDirectoryEntry()) {
|
||||
findModuleNameMap((DirectoryNode)entry, moduleNameMap, modules);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue