Crash: NullPointerException
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- mobile-dev
Research direction
Start by locating the obfuscated classes named in the stack traces, especially yg, qo, j80, and b4, and identify the package-list sorting and app-initialization paths they belong to. Reproduce the crash with the reported app-list actions and startup flow, then trace which value can be null before the requireNonNull call. Done means the crashes no longer occur, filters and sorting work without errors, and package-list entries no longer appear as invisible gaps.
Written by the indexing model from the issue text.
Description
Multiple NullPointerException crashes in package list and app initialization
The app frequently crashes when interacting with the app list, such as applying filters, and sometimes crashes on startup.
Some apps also appear as invisible gaps in the list; tapping a gap shows a "Package is not found" error.
Removing all residual app files slightly improves the issue, but the problem still persists.
Unique crash signatures
1. Main thread — yg.<init>:176
java.lang.NullPointerException
at java.util.Objects.throwNullPointerException(Objects.java:524)
at java.util.Objects.requireNonNull(Objects.java:235)
at b4.g(...:142)
at yg.<init>(...:176)
at j80.i(...:632)
at g8.m(...:7)
at j.e(...:158)
at ae0.run(...:8)
2. Background thread — package list sorting
java.lang.NullPointerException
at java.util.Objects.throwNullPointerException(Objects.java:524)
at java.util.Objects.requireNonNull(Objects.java:235)
at wv.applyAsLong(...:41)
at java.util.Comparator.lambda$comparingLong$6043328a$1(Comparator.java:515)
at java.util.Comparator$$ExternalSyntheticLambda4.compare(D8$$SyntheticClass:0)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:360)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1352)
at java.util.concurrent.CopyOnWriteArrayList.sortRange(CopyOnWriteArrayList.java:984)
at java.util.concurrent.CopyOnWriteArrayList.sort(CopyOnWriteArrayList.java:976)
at qo.K(...:154)
at j.a(...:345)
at ae0.run(...:25)
3. Main thread — yg.<init>:98
java.lang.NullPointerException
at java.util.Objects.throwNullPointerException(Objects.java:524)
at java.util.Objects.requireNonNull(Objects.java:235)
at b4.g(...:142)
at yg.<init>(...:98)
at j80.i(...:632)
at g8.m(...:7)
at j.e(...:158)
at ae0.run(...:8)
Environment
- App: Package Manager
- Package:
com.smartpack.packagemanager - Version:
v8.0 - SDK: 36
- Crash:
java.lang.NullPointerException
- 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