Skip to content

Commit 2c043ec

Browse files
committed
Fix for ASM issue 317555
Issue: SPR-12957
1 parent cb01f89 commit 2c043ec

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spring-core/src/main/java/org/springframework/asm/MethodWriter.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -2706,11 +2706,13 @@ private void resizeInstructions() {
27062706
l = l.successor;
27072707
}
27082708
// Update the offsets in the uninitialized types
2709-
for (i = 0; i < cw.typeTable.length; ++i) {
2710-
Item item = cw.typeTable[i];
2711-
if (item != null && item.type == ClassWriter.TYPE_UNINIT) {
2712-
item.intVal = getNewOffset(allIndexes, allSizes, 0,
2713-
item.intVal);
2709+
if (cw.typeTable != null) {
2710+
for (i = 0; i < cw.typeTable.length; ++i) {
2711+
Item item = cw.typeTable[i];
2712+
if (item != null && item.type == ClassWriter.TYPE_UNINIT) {
2713+
item.intVal = getNewOffset(allIndexes, allSizes, 0,
2714+
item.intVal);
2715+
}
27142716
}
27152717
}
27162718
// The stack map frames are not serialized yet, so we don't need

0 commit comments

Comments
 (0)