Crash on trying to click on "Google podcasts" app from installed apps list

Open
#141 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
Mostly clear
Activity status
Stale
Tech stack
android, java
Domain
mobile-dev

Research direction

Start by inspecting PackageDetailsActivity.onCreate in the Android application and the null-array access reported from U0.r.g0 in SourceFile:26. Reproduce the crash by opening Google Podcasts from the installed-apps list on an Android 14 device, then verify that package details launch without the null-pointer exception. The issue is stale and has no recent discussion, so confirm the current implementation and expected behavior before making changes.

Written by the indexing model from the issue text.

Description

Device: Redmi 11 Prime 5G
OS: Hyper OS 1.0.4.0 based on Android 14

Steps to reproduce the issue: Package Manager fdroid v7.3 crashes when pressing on a particular app "Google Podcasts", trying to go to its package details page, certainly a regression since the last update it started crashing. Not every installed app is affected though mostly on other apps, it shows their details fine. Crash is reproducible on this specific app every time.

App Name: Package Manager
Package Name: com.smartpack.packagemanager
App Version: v7.3
SDK Version: 34

Crash Report

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.smartpack.packagemanager/com.smartpack.packagemanager.activities.PackageDetailsActivity}: java.lang.NullPointerException: Attempt to get length of null array
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4043)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4203)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:99)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2616)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:222)
at android.os.Looper.loop(Looper.java:314)
at android.app.ActivityThread.main(ActivityThread.java:8706)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:565)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at U0.r.g0(SourceFile:26)
at com.smartpack.packagemanager.activities.PackageDetailsActivity.onCreate(SourceFile:179)
at android.app.Activity.performCreate(Activity.java:8886)
at android.app.Activity.performCreate(Activity.java:8851)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1470)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4025)
... 12 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

  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.