Font names can sometimes be null.. We now accept this and can move on with
our serialization life. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e6a5e2048
commit
444672612e
@ -578,7 +578,9 @@ public class FontRecord
|
|||||||
data[ 17 + offset ] = (( byte ) 0);
|
data[ 17 + offset ] = (( byte ) 0);
|
||||||
data[ 18 + offset ] = getFontNameLength();
|
data[ 18 + offset ] = getFontNameLength();
|
||||||
data[ 19 + offset ] = ( byte ) 1;
|
data[ 19 + offset ] = ( byte ) 1;
|
||||||
StringUtil.putUncompressedUnicode(getFontName(), data, 20 + offset);
|
if (getFontName() != null) {
|
||||||
|
StringUtil.putUncompressedUnicode(getFontName(), data, 20 + offset);
|
||||||
|
}
|
||||||
return getRecordSize();
|
return getRecordSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user