From 1d336e0aa799b90c3aa37cc5c9d7577b78dc26fd Mon Sep 17 00:00:00 2001 From: cpw Date: Fri, 15 Aug 2014 16:03:45 -0400 Subject: [PATCH] Fix almost invisible NPE in TerminalTransformer when loading a non-existant class --- .../mods/fml/common/asm/transformers/TerminalTransformer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fml/src/main/java/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java b/fml/src/main/java/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java index ec62cd2e5..c38d865ea 100644 --- a/fml/src/main/java/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java +++ b/fml/src/main/java/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java @@ -11,6 +11,7 @@ public class TerminalTransformer implements IClassTransformer @Override public byte[] transform(String name, String transformedName, byte[] basicClass) { + if (basicClass == null) return null; ClassReader reader = new ClassReader(basicClass); ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);