CRASH

Open
#171 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
android, java
Domain
mobile-dev

Research direction

Start with the PackageManager.getPackageArchiveInfo call in the stack trace and the work launched from the R8-mapped x8.run entry point. Determine why the archive path passed to java.io.File can be null for an uninstalled app. Done means the uninstalled-app path no longer throws NullPointerException and the relevant behavior is covered by a regression test.

Written by the indexing model from the issue text.

Description

Uninstalled Apps crash
java.lang.NullPointerException
at java.io.File.(File.java:288)
at android.content.pm.PackageManager.getPackageArchiveInfo(PackageManager.java:8825)
at android.content.pm.PackageManager.getPackageArchiveInfo(PackageManager.java:8816)
at x8.run(r8-map-id-737c790a9f173eb386930f37d55aad3fd3b031bf6e37a047c7e9d9949fb0ea9c:41)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:1572)

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.