--- poi-3.1-beta1/src/scratchpad/src/org/apache/poi/hwpf/model/ListLevel.java 2008-04-21 08:42:17.000000000 -0500 +++ poi-3.1-beta1/src/scratchpad/src/org/apache/poi/hwpf/model/ListLevel.java 2008-05-14 11:39:01.000000000 -0500 @@ -225,6 +225,8 @@ System.arraycopy(_grpprlPapx, 0, buf, offset, _cbGrpprlPapx); offset += _cbGrpprlPapx; + if (_numberText != null) + { LittleEndian.putShort(buf, offset, (short)_numberText.length); offset += LittleEndian.SHORT_SIZE; for (int x = 0; x < _numberText.length; x++) @@ -232,6 +234,8 @@ LittleEndian.putShort(buf, offset, (short)_numberText[x]); offset += LittleEndian.SHORT_SIZE; } + } + return buf; } public int getSizeInBytes()