Skip to content

Commit

Permalink
fix: ignore non-existing constant pool reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
abeaumont committed Mar 31, 2022
1 parent 4da2b2a commit 5561b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func parseFields(r reader.Reader, classes ClassMap, cpools PoolMap, class ClassM
}
p, ok := cpool[int(i)]
if !ok {
return fmt.Errorf("unknown constant pool index %d for class %d", i, f.Class)
continue
}
if err := cb(f.Name, p); err != nil {
return fmt.Errorf("unable to parse constant field %s: %w", f.Name, err)
Expand Down

0 comments on commit 5561b36

Please sign in to comment.