LuckSiege / LuckSiege/PictureSelector

华为 nova9 闪退

Open
#2,815 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

Current use version?

当前使用的版本是多少?
3.10.7

Will this problem occur in demo?

Demo能否复现这问题?
友盟上抓取,没有机型无法复现

Describe the problem or provide an error log?

描述问题或提供错误log?

设备机型:HUAWEI
系统:HarmonyOS
机型版本:NAM-AL00
CPU架构:arm64-v8a,armeabi-v7a,armeabi

Thread Name: 'main'
Back traces starts.
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.getBoolean(java.lang.String, boolean)' on a null object reference
	at com.luck.lib.camerax.CustomCameraView.setCameraConfig(CustomCameraView.java:494)
	at com.luck.lib.camerax.PictureCameraActivity$1.run(PictureCameraActivity.java:62)
	at android.os.Handler.handleCallback(Handler.java:955)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:228)
	at android.app.ActivityThread.main(ActivityThread.java:9016)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:614)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1129)
Back traces ends.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by inspecting CustomCameraView.java at line 494 and the call from PictureCameraActivity.java line 62. Trace why the Bundle is null on HUAWEI NAM-AL00 running HarmonyOS, then verify the camera flow no longer throws this NullPointerException; reproduction currently requires a matching device or crash report.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.