ArthurHub / ArthurHub/Android-Image-Cropper
Field crash - RuntimeException
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
I have below crashed reported in production:
```
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tools.screenshot/com.tools.screenshot.editing.ui.activities.CropActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.theartofdev.edmodo.cropper.CropImageOptions.activityTitle' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.access$800(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5273)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.theartofdev.edmodo.cropper.CropImageOptions.activityTitle' on a null object reference
at com.theartofdev.edmodo.cropper.CropImageActivity.onCreate(SourceFile:63)
at com.tools.screenshot.editing.ui.activities.CropActivity.onCreate(SourceFile:90)
at android.app.Activity.performCreate(Activity.java:6119)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.access$800(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5273)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at CropImageActivity.onCreate and the calling CropActivity.onCreate locations shown in the stack trace, then determine why CropImageOptions is null during activity startup. Reproduce the reported launch failure and trace the activity configuration and initialization path. Done means CropActivity starts without this NullPointerException and the failure case is covered by an appropriate regression check.
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
- 30/100