Skip to content

Commit 9026341

Browse files
committed
this is no more the case
1 parent e0f5214 commit 9026341

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

deobfuscator-api/src/main/java/uwu/narumi/deobfuscator/api/asm/InsnContext.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ public InsnContext of(AbstractInsnNode insn) {
2323
}
2424

2525
public Frame<OriginalSourceValue> frame() {
26-
if (this.methodContext.frames() == null) {
27-
throw new IllegalStateException("Got frameless method context");
28-
}
2926
return this.methodContext.frames().get(this.insn);
3027
}
3128

deobfuscator-api/src/main/java/uwu/narumi/deobfuscator/api/asm/matcher/impl/FrameMatch.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ public static FrameMatch localVariable(int localVariableIdx, Match match) {
3636

3737
@Override
3838
protected boolean test(MatchContext context) {
39-
if (context.insnContext().methodContext().frames() == null) {
40-
throw new IllegalStateException("Got frameless method context");
41-
}
42-
4339
if (context.frame() == null) {
4440
// If we expect stack values, then frame can't be null
4541
return false;

0 commit comments

Comments
 (0)