garydgregory commented on code in PR #405:
URL: https://github.com/apache/commons-bcel/pull/405#discussion_r4428592153
##########
src/main/java/org/apache/bcel/classfile/Attribute.java:
##########
@@ -176,10 +177,16 @@ private static Attribute readAttribute0(final DataInput
dataInput, final Constan
// Get class name from constant pool via 'name_index' indirection
final int nameIndex = dataInput.readUnsignedShort();
final String name = constantPool.getConstantUtf8(nameIndex).getBytes();
-
+ // Validate name
+ if (name == null || name.isEmpty()) {
Review Comment:
How can name be null here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]