alibaba / alibaba/AndFix

用0.5.0版本就会出现崩溃

Open
#346 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Process: com.mysoft.andfix, PID: 25382
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mysoft.andfix/com.mysoft.andfix.MainActivity}: java.lang.IllegalArgumentException: permission is null
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2364)
at android.app.ActivityThread.access$900(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1266)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5387)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: permission is null
at android.app.ContextImpl.checkCallingOrSelfPermission(ContextImpl.java:2179)
at android.content.ContextWrapper.checkCallingOrSelfPermission(ContextWrapper.java:567)
at com.mysoft.andfix.MainActivity.onCreate(MainActivity.java)
at android.app.Activity.performCreate(Activity.java:5431)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2364) 
at android.app.ActivityThread.access$900(ActivityThread.java:162) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1266) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:157) 
at android.app.ActivityThread.main(ActivityThread.java:5387) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) 
at dalvik.system.NativeStart.main(Native Method) 

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the crash with version 0.5.0 and start at MainActivity.onCreate, where the stack trace reports Context.checkCallingOrSelfPermission receiving a null permission. Trace which permission value is passed during activity startup and compare the behavior with other versions; done means the app launches without this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.