mirror of https://github.com/apache/poi.git
XLS: HyperlinkRecord: remove check for value in usKeyValue field because some (correct) files has unexpected value there
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1170166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9434b9ba3f
commit
d2e01397f0
|
@ -501,10 +501,9 @@ public final class HyperlinkRecord extends StandardRecord {
|
|||
int charDataSize = in.readInt();
|
||||
|
||||
//From the spec: An optional unsigned integer that MUST be 3 if present
|
||||
int optFlags = in.readUShort();
|
||||
if (optFlags != 0x0003) {
|
||||
throw new RecordFormatException("Expected 0x3 but found " + optFlags);
|
||||
}
|
||||
// but some files has 4
|
||||
int usKeyValue = in.readUShort();
|
||||
|
||||
_address = StringUtil.readUnicodeLE(in, charDataSize/2);
|
||||
} else {
|
||||
_address = null;
|
||||
|
|
Loading…
Reference in New Issue