diff --git a/deob/src/main/java/dev/openrs2/deob/transform/ClassForNameTransformer.java b/deob/src/main/java/dev/openrs2/deob/transform/ClassForNameTransformer.java index 01ab20d6ee..9388bdb468 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/ClassForNameTransformer.java +++ b/deob/src/main/java/dev/openrs2/deob/transform/ClassForNameTransformer.java @@ -36,7 +36,10 @@ public final class ClassForNameTransformer extends Transformer { public void transformCode(ClassNode clazz, MethodNode method) { INVOKE_MATCHER.match(method).filter(ClassForNameTransformer::isClassForName).forEach(match -> { var ldc = (LdcInsnNode) match.get(0); - ldc.cst = remapper.map((String) ldc.cst); + var name = remapper.map((String) ldc.cst); + if (name != null) { + ldc.cst = name; + } }); } }