0% found this document useful (0 votes)
10 views1 page

Latestcrash

The crash report for PojavLauncher indicates a failure to instantiate the MainActivity due to a NullPointerException related to the DisplayMetrics density field. This error occurred on an A1601 device running Android 5.1 on March 21, 2022. The issue arises during the activity launch process, specifically in the dpToPx method of the Tools class.

Uploaded by

adityakhunte869
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Latestcrash

The crash report for PojavLauncher indicates a failure to instantiate the MainActivity due to a NullPointerException related to the DisplayMetrics density field. This error occurred on an A1601 device running Android 5.1 on March 21, 2022. The issue arises during the activity launch process, specifically in the dpToPx method of the Tools class.

Uploaded by

adityakhunte869
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

PojavLauncher crash report

- Time: 21 Mar 2022 7:05:48 pm


- Device: A1601 A1601
- Android version: 5.1
- Crash stack trace:
- Launcher version: crocus-v3_openjdk
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{net.kdt.pojavlaunch/net.kdt.pojavlaunch.MainActivity}:
java.lang.NullPointerException: Attempt to read from field 'float
android.util.DisplayMetrics.density' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2499)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
at android.app.ActivityThread.access$900(ActivityThread.java:188)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1530)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:210)
at android.app.ActivityThread.main(ActivityThread.java:5839)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)
Caused by: java.lang.NullPointerException: Attempt to read from field 'float
android.util.DisplayMetrics.density' on a null object reference
at net.kdt.pojavlaunch.Tools.dpToPx(Tools.java:386)
at net.kdt.pojavlaunch.BaseMainActivity.<init>(BaseMainActivity.java:53)
at net.kdt.pojavlaunch.MainActivity.<init>(MainActivity.java:18)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.Instrumentation.newActivity(Instrumentation.java:1071)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2476)
... 10 more

You might also like