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

Index out of bound Exception #5

Closed
manojm95 opened this issue Mar 4, 2017 · 3 comments
Closed

Index out of bound Exception #5

manojm95 opened this issue Mar 4, 2017 · 3 comments

Comments

@manojm95
Copy link

manojm95 commented Mar 4, 2017

Random times when i try to open a folder I get the below error The probability of getting this error is one out of three or four times, when I try to open a folder. Device is Samsung

03-03 19:59:29.189 19420-19420/com.example.manojprabahar.imagepickerimage E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.manojprabahar.imagepickerimage, PID: 19420
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.manojprabahar.imagepickerimage/com.erikagtierrez.multiple_media_picker.OpenGallery}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3320)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3416)
at android.app.ActivityThread.access$1100(ActivityThread.java:230)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1822)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7409)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.erikagtierrez.multiple_media_picker.OpenGallery.populateRecyclerView(OpenGallery.java:75)
at com.erikagtierrez.multiple_media_picker.OpenGallery.onCreate(OpenGallery.java:69)
at android.app.Activity.performCreate(Activity.java:6904)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3267)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3416) 
at android.app.ActivityThread.access$1100(ActivityThread.java:230) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1822) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148) 
at android.app.ActivityThread.main(ActivityThread.java:7409) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 

@jmarkstar
Copy link

+1

1 similar comment
@Gwindor-Aut
Copy link

+1

@erikagtierrez
Copy link
Owner

Make sure you're using the last version:
compile 'com.erikagtierrez.multiple_media_picker:multiple-media-picker:1.0.2'
And let me know if the problem persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants