PROJECT INFORMATION
REPOSITORIES :https://github.com/SumeetMoray/Nearby-Shops-Admin-App OR CAN BE https://github.com/SumeetMoray/Nearby-Shops-End-User-Android-app
ISSUES : https://github.com/SumeetMoray/Nearby-Shops-Admin-App/issues/2
EXPECTED BEHAVIOR
when writing the url that you want to submit the user should be able to cancel the creation of a new market so that users can submit a new url for the local market
ACTUAL BEHAVIOR
after the user cancels the creation of a new market then when the user wants to write the new url this application will crash
STEP TO REPRODUCE
- install and open the app
- scroll right to the "market" section
- there will be a "+" button, press the button and write a url
- press submit, then wait a few seconds, then press any part of the screen to cancel creating a new market.
- theN try to write a new url and note the error
ERROR RECORDING
android: android 6.1
BROWSER: Nearby-Shops-End-User-Android-app V 1.1
Process: org.nearbyshops.enduserappnew, PID: 17603
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
at android.widget.Toast.<init>(Toast.java:106)
at android.widget.Toast.makeText(Toast.java:271)
at org.nearbyshops.enduserappnew.Markets.SubmitURLDialog.showToastMessage(SubmitURLDialog.java:218)
at org.nearbyshops.enduserappnew.Markets.SubmitURLDialog$1.onFailure(SubmitURLDialog.java:207)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$2.run(ExecutorCallAdapterFactory.java:80)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:218)
at android.app.ActivityThread.main(ActivityThread.java:5657)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)```