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.NullPointerException #143

Open
manwooo opened this issue Apr 26, 2022 · 1 comment
Open

java.lang.NullPointerException #143

manwooo opened this issue Apr 26, 2022 · 1 comment

Comments

@manwooo
Copy link

manwooo commented Apr 26, 2022

How to solve this error ? this error is not always,..

manifest.xml include permission..

i'm using below version.
implementation 'gun0912.ted:tedpermission:2.2.3'

bleow is stack trace...

java.lang.RuntimeException: Unable to start activity ComponentInfo{kr.co.nexict.next/com.gun0912.tedpermission.TedPermissionActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.app.Activity.getFilesDir()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4035)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4201)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2438)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.app.Activity.getFilesDir()' on a null object reference
at i.a.a.c.j0.e.a.a(:103)
at com.gun0912.tedpermission.TedPermissionActivity.B(Unknown Source:45)
at com.gun0912.tedpermission.TedPermissionActivity.z(Unknown Source:48)
at com.gun0912.tedpermission.TedPermissionActivity.onCreate(:7)
at android.app.Activity.performCreate(Activity.java:8290)
at android.app.Activity.performCreate(Activity.java:8270)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4009)
... 12 more
java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.app.Activity.getFilesDir()' on a null object reference
at i.a.a.c.j0.e.a.a(:103)
at com.gun0912.tedpermission.TedPermissionActivity.B(Unknown Source:45)
at com.gun0912.tedpermission.TedPermissionActivity.z(Unknown Source:48)
at com.gun0912.tedpermission.TedPermissionActivity.onCreate(:7)
at android.app.Activity.performCreate(Activity.java:8290)
at android.app.Activity.performCreate(Activity.java:8270)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4009)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4201)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2438)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

@ted-prnd
Copy link
Collaborator

Do you have problem scenario?

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

2 participants