Project Information
- Repository: https://github.com/hapramp/1Rramp-Android
- Project Name: 1Rramp-Android
- Publisher: @the-dragon / @singhpratyush
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
PO was able to replicate the issue as per discussion in Discord.
