This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 52c09522 NPE in 
pack200.NewAttributeBands.Reference.addAttributeToBand(NewAttribute, 
InputStream)
52c09522 is described below

commit 52c095220dfb018611c835e31780e139e472f788
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Oct 28 08:57:41 2023 -0400

    NPE in pack200.NewAttributeBands.Reference.addAttributeToBand(NewAttribute,
    InputStream)
---
 src/changes/changes.xml                                                 | 1 +
 .../org/apache/commons/compress/harmony/pack200/NewAttributeBands.java  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 0e6d6fc3..359e0a5f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -70,6 +70,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Precompile 
regular expression in ChangeSet.addDeletion(Change).</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory" 
issue="COMPRESS-649">Improve performance in 
BlockLZ4CompressorOutputStream.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Null-guard 
Lister.main(String[]) for programmatic invocation.</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">NPE in 
pack200.NewAttributeBands.Reference.addAttributeToBand(NewAttribute, 
InputStream).</action>
       <!-- UPDATE -->
       <action type="update" dev="ggregory" due-to="Dependabot">Bump 
org.slf4j:slf4j-api from 2.0.8 to 2.0.9 #413.</action>
       <action type="update" dev="ggregory" due-to="Gary Gregory">Bump 
commons-io:commons-io from 2.13.0 to 2.15.0.</action>
diff --git 
a/src/main/java/org/apache/commons/compress/harmony/pack200/NewAttributeBands.java
 
b/src/main/java/org/apache/commons/compress/harmony/pack200/NewAttributeBands.java
index 404f8ef4..2c6da49a 100644
--- 
a/src/main/java/org/apache/commons/compress/harmony/pack200/NewAttributeBands.java
+++ 
b/src/main/java/org/apache/commons/compress/harmony/pack200/NewAttributeBands.java
@@ -293,7 +293,7 @@ public class NewAttributeBands extends BandSet {
 
         private final String tag;
 
-        private List<ConstantPoolEntry> band;
+        private List<ConstantPoolEntry> band = new ArrayList<>();
 
         private boolean nullsAllowed;
 

Reply via email to