Null classes are bad umm kay.

This commit is contained in:
AlgorithmX2 2014-05-23 15:51:25 -05:00
parent 15aa825d30
commit ea936d3b72
2 changed files with 4 additions and 1 deletions

View file

@ -60,7 +60,7 @@ public class ASMIntegration implements IClassTransformer
@Override
public byte[] transform(String name, String transformedName, byte[] basicClass)
{
if ( transformedName.startsWith( "appeng.transformer" ) )
if ( basicClass == null || transformedName.startsWith( "appeng.transformer" ) )
return basicClass;
if ( transformedName.startsWith( "appeng." ) )

View file

@ -33,6 +33,9 @@ public class ASMTweaker implements IClassTransformer
@Override
public byte[] transform(String name, String transformedName, byte[] basicClass)
{
if ( basicClass == null )
return basicClass;
try
{
if ( transformedName != null && privateToPublicMethods.containsKey( transformedName ) )