mirror of
https://github.com/apache/poi.git
synced 2025-02-07 02:28:13 +00:00
Fix for Softmaker Office files, which set encryption settings invalidly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a8a733cdf
commit
5e5c991855
@ -85,7 +85,12 @@ public class HSLFSlideShowEncrypted {
|
||||
PersistPtrHolder ptr = (PersistPtrHolder)r;
|
||||
|
||||
Integer encOffset = ptr.getSlideLocationsLookup().get(userEditAtomWithEncryption.getEncryptSessionPersistIdRef());
|
||||
assert(encOffset != null);
|
||||
if (encOffset == null) {
|
||||
// encryption info doesn't exist anymore
|
||||
// SoftMaker Freeoffice produces such invalid files - check for "SMNativeObjData" ole stream
|
||||
dea = null;
|
||||
return;
|
||||
}
|
||||
|
||||
r = recordMap.get(encOffset);
|
||||
if (r == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user