From 183b3e63161627df7958830f6995b6e3b6da61e3 Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 15 Feb 2013 04:53:56 -0800 Subject: [PATCH] Fix EventTransformer throwing an NPE when transforming a class that doesn't exist. Closes #413 --- common/net/minecraftforge/transformers/EventTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/minecraftforge/transformers/EventTransformer.java b/common/net/minecraftforge/transformers/EventTransformer.java index ebe50087d..ae04b08e4 100644 --- a/common/net/minecraftforge/transformers/EventTransformer.java +++ b/common/net/minecraftforge/transformers/EventTransformer.java @@ -22,7 +22,7 @@ public class EventTransformer implements IClassTransformer @Override public byte[] transform(String name, byte[] bytes) { - if (name.equals("net.minecraftforge.event.Event") || name.startsWith("net.minecraft.") || name.indexOf('.') == -1) + if (bytes == null || name.equals("net.minecraftforge.event.Event") || name.startsWith("net.minecraft.") || name.indexOf('.') == -1) { return bytes; }