Crash: NullPointerException

Open
#179 0 comments 0 reactions 0 assignees View on GitHub

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
Tech stack
android, java
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SmartPack/PackageManager

All issues in SmartPack/PackageManager

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.