Report

未关闭
#180 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
android, java
领域
mobile-dev

调研方向

The crash report points to a null TextView being updated in the obfuscated method q4.y; start by locating that method and the related view-holder or adapter code. Trace how the TextView is initialized and identify the screen or adapter that triggers the failure. The issue does not name source files, expected behavior, or a reproduction case, so the fix should be validated against the reported layout and app version.

由索引模型根据 Issue 内容生成。

描述

App Name: Package Manager
Package Name: com.smartpack.packagemanager
App Version: v8.0
SDK Version: 28

Crash Report

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
at q4.y(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:180)
at tl.I(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:20)
at androidx.fragment.app.a.f(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:196)
at androidx.fragment.app.a.k(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:146)
at jm.A(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:1034)
at jm.T(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:82)
at jm.z(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:29)
at androidx.viewpager2.adapter.a.o(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:158)
at androidx.viewpager2.adapter.a.i(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:3)
at o7.f(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:43)
at vy.b(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:268)
at androidx.recyclerview.widget.LinearLayoutManager.X0(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:34)
at androidx.recyclerview.widget.LinearLayoutManager.K0(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:49)
at androidx.recyclerview.widget.LinearLayoutManager.d0(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:837)
at androidx.recyclerview.widget.RecyclerView.r(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:75)
at androidx.recyclerview.widget.RecyclerView.p(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:15)
at androidx.recyclerview.widget.RecyclerView.onLayout(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:8)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at androidx.viewpager2.widget.ViewPager2.onLayout(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:57)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at androidx.appcompat.widget.LinearLayoutCompat.onLayout(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:167)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at androidx.coordinatorlayout.widget.CoordinatorLayout.p(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:384)
at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(r8-map-id-9f5fb97650b83ab996f3498f5156f7b476a767f033631ea3bd6603b696d06484:47)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:1083)
at android.view.View.layout(View.java:22415)
at android.view.ViewGroup.layout(ViewGroup.java:6594)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3409)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2876)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1924)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8555)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
at android.view.Choreographer.doCallbacks(Choreographer.java:761)
at android.view.Choreographer.doFrame(Choreographer.java:696)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7124)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)

主要语言
Java
星标
877
派生
121
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SmartPack/PackageManager 的其他 Issue

查看 SmartPack/PackageManager 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。