[BUGFIX] Solved issues with clients that don't have a webclient

This commit is contained in:
JKetelaar
2016-01-26 22:12:11 +01:00
parent 245f4cf081
commit 489bf495e1
2 changed files with 9 additions and 2 deletions
@@ -88,7 +88,12 @@ public class ASMClassLoader extends ClassLoader {
}
private final ProtectionDomain getDomain() {
CodeSource code = new CodeSource(null, (Certificate[]) null);
CodeSource code = null;
try {
code = new CodeSource(new URL("http://www.url.com/"), (Certificate[]) null);
} catch (MalformedURLException e) {
e.printStackTrace();
}
return new ProtectionDomain(code, getPermissions());
}
@@ -49,7 +49,9 @@ public class AddSuperAdapter implements Injectable {
AbstractInsnNode ain = (AbstractInsnNode) ili.next();
if (ain.getOpcode() == Opcodes.INVOKESPECIAL) {
MethodInsnNode min = (MethodInsnNode) ain;
min.owner = superClass;
if(!min.owner.equals(node.name)) {
min.owner = superClass;
}
break;
}
}