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

Version 0.0.13 - App crashes when trying to place a divider/border next to photo's caption #151

Closed
josephace135 opened this issue Sep 6, 2018 · 0 comments

Comments

@josephace135
Copy link

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

https://www.youtube.com/watch?v=T2TrpaTFGIM

@bxute bxute closed this as completed in 4584f28 Sep 7, 2018
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

1 participant