1ramp v0.0.13 - App crashes when trying to place a divider/border next to photo's caption

in utopian-io •  6 years ago 

Project Information

Expected behavior

When trying to add a divider/border below the caption of a photo, it should be rendered and be added.

Actual behavior

Upon trying to add a divider/border below the caption of a photo, the app crashes.

How to reproduce

  • Tap the "+" button and select "Blog".
  • Add the title of the post.
  • Upload a photo.
  • After the photo has been uploaded successfully, add a caption.
  • Now, tap the icon that is composed of two lines - first line is horizontal line and the next line is a horizontal line that is broken.
  • After tapping that icon, the text box would show "Type here...", delete those texts.
  • Then, tap again the icon for divider/border and after that, the issue occurs for which the app crashes.

Logcat Report

09-06 14:47:26.180  7770  7770 E AndroidRuntime: FATAL EXCEPTION: main
09-06 14:47:26.180  7770  7770 E AndroidRuntime: Process: com.hapramp, PID: 7770
09-06 14:47:26.180  7770  7770 E AndroidRuntime: java.lang.IndexOutOfBoundsException: index=2 count=1
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.view.ViewGroup.addInArray(ViewGroup.java:4760)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.view.ViewGroup.addViewInner(ViewGroup.java:4681)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.view.ViewGroup.addView(ViewGroup.java:4495)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.view.ViewGroup.addView(ViewGroup.java:4436)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at xute.markdeditor.MarkDEditor.insertHorizontalDivider(MarkDEditor.java:319)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at xute.markdeditor.EditorControlBar$5.onClick(EditorControlBar.java:158)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.view.View.performClick(View.java:5721)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:22620)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:739)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7406)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
09-06 14:47:26.180  7770  7770 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Environment

  • App/Plugin version: HapRamp-Android v0.0.13
  • Device: Samsung Galaxy J2 Prime (SM-G532G/DS)
  • Operating system: Android version 6.0.1

Recording of the Bug

GitHub Account

https://github.com/josephace135

GitHub Issue

Issue #151.

PO was able to replicate the issue as per discussion in Discord.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks for your contribution.

I was able to replicate this crash too.

  1. Your steps were clear and the title was easy to understand.
  2. Thanks for providing some evidence surrounding contacting the project owner further than the GitHub issue, I can see that a commit has been placed against this issue too, this is great news.
  3. The video was easy to view and straight to the point.
  4. Great to see that you have included a log-cat with your issue, this is becoming a norm in your posts, this is great!
  5. Your contribution could have scored higher by attempting to provide a possible solution to the issue.
  6. As this can be easily avoided and not something I would argue as a main function (although important to some people) of the application I believe this issue is minor.

Once again, thanks for your contribution and I look forward to your next one.


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? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @tobias-g!

So far this week you've reviewed 1 contributions. Keep up the good work!

Hi @josephace135!

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

Hey, @josephace135!

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!

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by josephace135 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.