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-bcel.git
commit ac67474e61bfa7ecc80c33f21aea19a209e33239 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Apr 1 10:43:37 2024 -0400 Avoid NullPointerException after calling org.apache.bcel.classfile.LineNumberTable.setLineNumberTable(LineNumber[]) Update constant ref --- src/main/java/org/apache/bcel/classfile/LineNumberTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/bcel/classfile/LineNumberTable.java b/src/main/java/org/apache/bcel/classfile/LineNumberTable.java index 55f58239..fe5a53d6 100644 --- a/src/main/java/org/apache/bcel/classfile/LineNumberTable.java +++ b/src/main/java/org/apache/bcel/classfile/LineNumberTable.java @@ -186,7 +186,7 @@ public final class LineNumberTable extends Attribute implements Iterable<LineNum * @param lineNumberTable the line number entries for this table */ public void setLineNumberTable(final LineNumber[] lineNumberTable) { - this.lineNumberTable = lineNumberTable != null ? lineNumberTable : EMPTY_ARRAY; + this.lineNumberTable = lineNumberTable != null ? lineNumberTable : LineNumber.EMPTY_ARRAY; } /**