Fix almost invisible NPE in TerminalTransformer when loading a non-existant class

This commit is contained in:
cpw 2014-08-15 16:03:45 -04:00
parent c8c6190566
commit 1d336e0aa7

View file

@ -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);