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:
Andrew C. Oliver 2003-05-02 14:30:03 +00:00
parent 2e6a5e2048
commit 444672612e

View File

@ -578,7 +578,9 @@ public class FontRecord
data[ 17 + offset ] = (( byte ) 0);
data[ 18 + offset ] = getFontNameLength();
data[ 19 + offset ] = ( byte ) 1;
StringUtil.putUncompressedUnicode(getFontName(), data, 20 + offset);
if (getFontName() != null) {
StringUtil.putUncompressedUnicode(getFontName(), data, 20 + offset);
}
return getRecordSize();
}