[Nextcloud Deck][v0.0.3] When I click on the "Delete column" option, the application crashes.
Project Information
- Repository: https://github.com/stefan-niedermann/nextcloud-deck
- Project Name: Nextcloud Deck
- Publisher: stefan-niedermann
Expected behavior
When I click on the "Delete column" option, the application should delete any existing columns properly. If the column doesn't exist, it should display a message box that says "Column (or columns) not found."
Actual behavior
When I click on the "Delete column" option, the application crashes immediately.
How to reproduce
- Open the Nextcloud Deck
- Click on the "Delete column" option.
- And you will see the application crashes and appears the error codes.
- App version: 0.0.3
- Operating system: Android 9.0
Logcat Report
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.get(ArrayList.java:437) at
it.niedermann.nextcloud.deck.ui.stack.StackAdapter.getItem(StackAdapter.java:22) at
it.niedermann.nextcloud.deck.ui.MainActivity.onOptionsItemSelected(MainActivity.java:299) at
android.app.Activity.onMenuItemSelected(Activity.java:3608) at
androidx.fragment.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:384) at
androidx.appcompat.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:219) at
androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:109) at
androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:109) at
androidx.appcompat.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:64) at
androidx.appcompat.widget.Toolbar$1.onMenuItemClick(Toolbar.java:207) at
androidx.appcompat.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:781)
at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:840) at
androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158) at
androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:991) at
androidx.appcompat.view.menu.MenuPopup.onItemClick(MenuPopup.java:128) at
android.widget.AdapterView.performItemClick(AdapterView.java:318) at
android.widget.AbsListView.performItemClick(AbsListView.java:1192) at
android.widget.AbsListView$PerformClick.run(AbsListView.java:3184) at
android.widget.AbsListView.onTouchUp(AbsListView.java:4182) at
android.widget.AbsListView.onTouchEvent(AbsListView.java:3896) at
androidx.appcompat.widget.DropDownListView.onTouchEvent(DropDownListView.java:217) at
androidx.appcompat.widget.MenuPopupWindow$MenuDropDownListView.onTouchEvent(MenuPopupWindow.java:12
9) at android.view.View.dispatchTouchEvent(View.java:12527) at
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3026) at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2705) at
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3032) at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719) at
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3032) at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719) at
android.widget.PopupWindow$PopupDecorView.dispatchTouchEvent(PopupWindow.java:2407) at
android.view.View.dispatchPointerEvent(View.java:12768) at
android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5230) at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5030) at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4545) at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4598) at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4564) at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4704) at
android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4572) at
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4761) at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4545) at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4598) at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4564) at
android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4572) at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4545) at
android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7263) at
android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7232) at
android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7193) at
android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7369) at
android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:247) at
android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:165) at android.app.ActivityThread.main(ActivityThread.java:6810) at
java.lang.reflect.Method.invoke(Native Method) at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Recording Of The Bug
Beneficiaries
• @utopian.pay = %5
Hello, @sargoon. Thank you for your contribution. The app did crash following the steps that you have provided. As the PO said in a comment to the issue you have submitted, the feature is actually under development, however, trying to use the feature should only throw an error message, not crash the app. Thank you for providing the basic info to reproduce the bug and the logs too. I look forward to your next contribution.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Hi there! Thank you for your review!
Thank you for your review, @knowledges! Keep up the good work!
Hi @sargoon!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Congratulations @sargoon! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Hi, @sargoon!
You just got a 0.07% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
Hey, @sargoon!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!