some NPE..
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- mobile-dev
Research direction
Start by reproducing the second-tab crash and the unauthorized-Shizuku app-item crash on Android 10, using the stack traces to locate the failing paths. Investigate the bottom-navigation callback and PackageDetailsActivity.onCreate, where the array errors are reported. Done means both flows complete without a null or out-of-bounds array access.
Written by the indexing model from the issue text.
Description
Hi developer, thanks for making such a handy app. I've noticed a few bugs and hope you can fix them in the next update.
My device: Huawei Honor 20i
OS version: Android 10
when click second tab on bottom nav, a NPE occur:
java.lang.NullPointerException: Attempt to get length of null array at T.e.w(SourceFile:17) at a1.q.a(SourceFile:197) at l1.a.run(SourceFile:27) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:929)
when use adb with Shizuku, click app item, a NPE occur (without authorize this app in Shizuku, this bug will not occur):
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.smartpack.packagemanager/com.smartpack.packagemanager.activities.PackageDetailsActivity}: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4065) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4252) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2618) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8673) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at T.e.E(SourceFile:96) at com.smartpack.packagemanager.activities.PackageDetailsActivity.onCreate(SourceFile:320) at android.app.Activity.performCreate(Activity.java:8214) at android.app.Activity.performCreate(Activity.java:8202) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4038) ... 11 more
- Dominant language
- Java
- Stars
- 877
- Forks
- 121
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SmartPack/PackageManager
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SmartPack/PackageManager#186 ·
-
UI bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SmartPack/PackageManager#184 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
SmartPack/PackageManager#185 ·
-
CaosOpen
Difficulty 3/5 Half a day Newbie friendliness 30/100
SmartPack/PackageManager#183 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
SmartPack/PackageManager#182 ·
All issues in SmartPack/PackageManager
Similar issues
-
area-integrations
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
isXander/YetAnotherConfigLib#376 ·
-
? - Needs Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NVIDIA/cudf-spark-jni#5598 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oracle/graalvm-reachability-metadata#12264 ·
Maintainers usually reply within 1 day
-
[source-facebook-pages] post stream never returns attachments.media_typePossibly taken @v-k-data claimed this today. Openarea/connectors needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day