Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.reflect.InvocationTargetException #150

Open
hprostudy opened this issue Dec 21, 2016 · 0 comments
Open

java.lang.reflect.InvocationTargetException #150

hprostudy opened this issue Dec 21, 2016 · 0 comments

Comments

@hprostudy
Copy link

protected void launchTargetActivity() {
try {
Class e = this.getClassLoader().loadClass(this.mClass);
Constructor localConstructor = e.getConstructor(new Class[0]);
Object instance = localConstructor.newInstance(new Object[0]);
this.mPluginActivity = (DLPlugin)instance;
((DLAttachable)this.mProxyActivity).attach(this.mPluginActivity, this.mPluginManager);
Log.d("DLProxyImpl", "instance = " + instance);
this.mPluginActivity.attach(this.mProxyActivity, this.mPluginPackage);
Bundle bundle = new Bundle();
bundle.putInt("extra.from", 1);
this.mPluginActivity.onCreate(bundle);
} catch (Exception var5) {
var5.printStackTrace();
}

}

Object instance = localConstructor.newInstance(new Object[0]); instance is null. why?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant