mrpdaemon / encdroid

Encdroid is an Android application for accessing EncFS volumes on cloud storage
GNU General Public License v3.0
86 stars 20 forks source link

Crash in EDFileChooserAdapter.getItem() #21

Closed mrpdaemon closed 11 years ago

mrpdaemon commented 12 years ago

Received a new crash backtrace through the Google Play store:

java.lang.ArrayIndexOutOfBoundsException: length=87; index=-1 at java.util.ArrayList.get(ArrayList.java:306) at org.mrpdaemon.android.encdroid.EDFileChooserAdapter.getItem(EDFileChooserAdapter.java:46) at org.mrpdaemon.android.encdroid.EDFileChooserActivity.onContextItemSelected(EDFileChooserActivity.java:542) at android.app.Activity.onMenuItemSelected(Activity.java:2571) at com.android.internal.policy.impl.PhoneWindow$DialogMenuCallback.onMenuItemSelected(PhoneWindow.java:3712) at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735) at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:149) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874) at com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:193) at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:936) at android.widget.AdapterView.performItemClick(AdapterView.java:292) at android.widget.AbsListView.performItemClick(AbsListView.java:1359) at android.widget.AbsListView$PerformClick.run(AbsListView.java:2988) at android.widget.AbsListView$1.run(AbsListView.java:3783) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4517) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760) at dalvik.system.NativeStart.main(Native Method)

mrpdaemon commented 11 years ago

Able to reproduce this, happens when the user long presses the directory title item in the file choser and clicks on "Select".

mrpdaemon commented 11 years ago

Fixed at e3b606eb72c49bc58e7cdc963fc6fb4744294635