Related Informations
<ul>
<li><span>Repository: <a href="https://github.com/AiursoftWeb/Kahla-Notify" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/AiursoftWeb/Kahla-Notify
<li>Project Name: Kahla Notify
<li>My Submitted Issue: <a href="https://github.com/AiursoftWeb/Kahla-Notify/issues/7" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here
<li>My GitHub Account: <a href="https://github.com/sagorahmed" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here
<li>Fixed Commit: <a href="https://github.com/AiursoftWeb/Kahla-Notify/commit/0ec00a5e14f7743248ce84cb14b8c26b32e739f1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here
<h4>Expected behavior
<p dir="auto">I expected that the app would notify me or warn me when I click on the login after filling all fields blank.
<h4>Actual behavior
<p dir="auto">When I clicked on the login button after letting all fields empty, then the app crashed.
<h4>How to reproduce
<p dir="auto">Here is every possible detail to reproduce the bug.
<ol>
<li>Open the app.
<li>The login page will arrive. Clear all the fields and click on the login.
<li>Notice the error.
<ul>
<li>App version: 2.0.2
<li>Operating system: Android 6.0.1
<h4>Recording Of The Bug
<p dir="auto"><img src="https://images.hive.blog/0x0/https://media.giphy.com/media/KbN1aUZybcrAYCiun4/giphy.gif" alt="kahla" />
<h4>LogCat
<pre><code>05-26 13:43:00.241 27643 27643 E AndroidRuntime: FATAL EXCEPTION: main
05-26 13:43:00.241 27643 27643 E AndroidRuntime: Process: com.ganlvtech.kahlanotify, PID: 27643
05-26 13:43:00.241 27643 27643 E AndroidRuntime: java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no colon was found
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at okhttp3.HttpUrl$Builder.parse(HttpUrl.java:1333)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at okhttp3.HttpUrl.get(HttpUrl.java:916)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.ganlvtech.kahlanotify.kahla.BaseService.newHttpUrlBuilder(BaseService.java:27)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.ganlvtech.kahlanotify.kahla.BaseService.newRequestBuilder(BaseService.java:33)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.ganlvtech.kahlanotify.kahla.AuthService.newAuthByPasswordCall(AuthService.java:64)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.ganlvtech.kahlanotify.client.KahlaClient.login(KahlaClient.java:275)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.ganlvtech.kahlanotify.LoginActivity.login(LoginActivity.java:152)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.ganlvtech.kahlanotify.LoginActivity.access$200(LoginActivity.java:17)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.ganlvtech.kahlanotify.LoginActivity$5.onClick(LoginActivity.java:93)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at android.view.View.performClick(View.java:5714)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at android.widget.TextView.performClick(TextView.java:10932)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:22589)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7325)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
05-26 13:43:00.241 27643 27643 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Hi @sagorahmed, thanks for making this contribution.
This a good find, an error prompt should have been thrown when no details were provided in the input fields. I see the PO has fixed the issue in the commit you shared above. The logcat you provided was very helpful. It correctly pointed out the cause of the crash.
I look forward to more of your reports.
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]
Thank you for your review, @fego! Keep up the good work!
Hi @sagorahmed!
Feel free to join our @steem-ua Discord serverYour 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!
Hey, @sagorahmed!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
SteemPlus or Steeditor). Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!