Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The application crashes when i click on Select From camera #96

Closed
44asad opened this issue Jun 30, 2019 · 1 comment
Closed

The application crashes when i click on Select From camera #96

44asad opened this issue Jun 30, 2019 · 1 comment

Comments

@44asad
Copy link

44asad commented Jun 30, 2019

Expected behavior:

I expected that the application should not be crash when i click on select an option from camera.

Actual behavior:

After configure the application when i click on select an option from camera. application is you can see in bug vieo proprealy.

How to reproduce:

1.Download the app from playstore and open the app.
2. Then click no [+] icon
3.Add New plant &
4.Naw Click On photo option
5.Then Select from camera
6.Note the Bug.

information

  • App version:v2.5.1
  • os:Android 6.0.1
  • Device:samsung J5

Recording of the bug

https://youtu.be/nzY4-7jKMcM

Logcat:

06-30 05:50:56.323 32009 32009 E AndroidRuntime: FATAL EXCEPTION: main
06-30 05:50:56.323 32009 32009 E AndroidRuntime: Process: me.anon.grow, PID: 32009
06-30 05:50:56.323 32009 32009 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:1, request=1, result=0, data=null} to activity {me.anon.grow/me.anon.grow.PlantDetailsActivity}: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.app.ActivityThread.deliverResults(ActivityThread.java:4927)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.app.ActivityThread.handleSendResult(ActivityThread.java:4970)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.app.ActivityThread.access$1600(ActivityThread.java:223)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1851)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.os.Handler.dispatchMessage(Handler.java:102)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.os.Looper.loop(Looper.java:158)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.app.ActivityThread.main(ActivityThread.java:7231)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at java.lang.reflect.Method.invoke(Native Method)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
06-30 05:50:56.323 32009 32009 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at java.util.ArrayList.get(ArrayList.java:310)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at me.anon.grow.fragment.PlantDetailsFragment.onActivityResult(PlantDetailsFragment.java:445)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.app.Activity.dispatchActivityResult(Activity.java:7162)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   at android.app.ActivityThread.deliverResults(ActivityThread.java:4923)
06-30 05:50:56.323 32009 32009 E AndroidRuntime:   ... 9 more
@7LPdWcaW
Copy link
Owner

Duplicate of #87

@7LPdWcaW 7LPdWcaW marked this as a duplicate of #87 Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants