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

我的组件化项目,在非主app中调用 比如在我的模块调用,会发现 globalContext=null #84

Open
GHHMBird opened this issue Mar 8, 2021 · 0 comments

Comments

@GHHMBird
Copy link

GHHMBird commented Mar 8, 2021

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at android.content.ComponentName.(ComponentName.java:130)
at android.content.Intent.(Intent.java:6107)
at ui.UpdateAppActivity$Companion.launch(UpdateAppActivity.kt:315)
at update.UpdateAppUtils.update(UpdateAppUtils.kt:127)
at hhm.android.my.AboutUsActivity$onCreate$2.onMultiClick(AboutUsActivity.kt:64)
at hhm.android.library.utils.OnMultiClickListener.onClick(OnMultiClickListener.java:18)
at android.view.View.performClick(View.java:6614)
at android.view.View.performClickInternal(View.java:6587)
at android.view.View.access$3100(View.java:787)
at android.view.View$PerformClick.run(View.java:26122)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6820)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:922)

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