ASF Bugzilla – Attachment 21963 Details for
Bug 45000
ListLevel.toByteArray() can fail with a NullPointerException
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file with nullity check
hwpfListlevelNullPointerException.patch (text/plain), 899 bytes, created by
N. Hira
on 2008-05-14 23:00:28 UTC
(
hide
)
Description:
patch file with nullity check
Filename:
MIME Type:
Creator:
N. Hira
Created:
2008-05-14 23:00:28 UTC
Size:
899 bytes
patch
obsolete
>diff -r -b -w -U 3 -d poi-3.1-beta1/src/scratchpad/src/org/apache/poi/hwpf/model/ListLevel.java poi-3.1/src/scratchpad/src/org/apache/poi/hwpf/model/ListLevel.java >--- 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/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()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45000
: 21963