Insteem v1.1.2; The app crashed when I tried to visit a user blog and entered their username, starting the first alphabet of the name with capital letter.

in utopian-io •  6 years ago  (edited)

Project Information

Expected behavior.

I expected that when I tried to visit a user's blog, when I input the username (starting with a capital letter), I will get an error message or the proposed action(which is to go to another user's blog) will not be performed.

Actual behavior.

The app crashed when I entered the username of another user start the first alphabet of the username in capital letter.

Steps to reproduce.

After doing all necessary measures to get into the app;

  • Access the options menu
  • Click on goto a blog
  • Enter a steem username starting the first alphabet with a capital letter. (For example; Instead of searching fego, search Fego)
  • See error. (The app crashes).

Test Environment

Device: Redmi Note 5 Pro
OS: Android 8.1
Software version: Insteem v1.5.0

Screen recording

Logcat

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:557)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    ... 1 more
Caused by: org.json.JSONException: No value for content
    at org.json.JSONObject.get(JSONObject.java:392)
    at org.json.JSONObject.getJSONObject(JSONObject.java:612)
    at com.insteem.ipfreely.steem.HelperClasses.JsonRpcResultConversion.ParseJsonBlog(JsonRpcResultConversion.kt:123)
    at com.insteem.ipfreely.steem.Fragments.MyFeedFragment.addItems(MyFeedFragment.kt:373)
    at com.insteem.ipfreely.steem.Fragments.MyFeedFragment$GetFeed$s$1.onResponse(MyFeedFragment.kt:304)
    at com.insteem.ipfreely.steem.Fragments.MyFeedFragment$GetFeed$s$1.onResponse(MyFeedFragment.kt:41)
    at com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:90)
    at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:102)
    at android.os.Handler.handleCallback(Handler.java:794)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:6635)
    ... 3 more

GitHub Account

https://github.com/HarryHeights

Link to Github Issue

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:  

Hi @harry-heightz, thanks for making this contribution.

I was able to reproduce the behavior just as you described. Too bad this is yet to be acknowledged. It is particularly strange that including a capital letter at the start of a name will result in a crash :/

  1. The steps you provided were quite easy to walk through. I coud see in the recording that the uppercased F in my name led to a crash. Be careful of F's ;)
  2. The expected and actual behavior were written in a manner that allowed for easy understanding.
  3. I really appreciate you providing a log of the crash. This should narrow down the search for what possibly led to the crash.

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]

Hahahahahahaha.... I'll careful of F's man. Thanks for your review @fego.

Thank you for your review, @fego! Keep up the good work!

Hey, @harry-heightz!

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!

Hi @harry-heightz!

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