Fix almost invisible NPE in TerminalTransformer when loading a non-existant class
This commit is contained in:
parent
c8c6190566
commit
1d336e0aa7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue