diff --git a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java index 18355b31da..3d6b237cf8 100644 --- a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java +++ b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java @@ -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;