Project

General

Profile

Bug #3672

Android Driver: While clicking on clear filters in my earnings & my trips the app crashes

Added by Firosha Fathima over 1 year ago. Updated 11 months ago.

Status:
QA Passed
Priority:
Normal
Assignee:
Nithun C
Target version:
Start date:
05/13/2025
Due date:
05/13/2025 (about 11 months late)
% Done:

0%

Estimated time:
Milestone:
Sprint 24 Tukxi Ride 2024 Oct 01 to Oct 31
Branch name:
sprint-24_nithun_3672

Description

Steps to produce
My Trips
1,Login to android driver
2,Select menu bar >> select my trips >> apply filters >> clear filter
3,Observe app crashes
My Earnings
1,Login to android driver
2,Select menu bar >> select my earnings >> others >> apply filters >> clear filter
3,Observe app crashes

Response
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference
at com.fragments.SelectedDayHistoryFragment.lambda$openFilterDialog$4(SelectedDayHistoryFragment.java:653)
at com.view.MTextView.onClick(MTextView.java:129)
at android.view.View.performClick(View.java:7185)
at android.view.View.performClickInternal(View.java:7162)
at android.view.View.access$3500(View.java:819)
at android.view.View$PerformClick.run(View.java:27678)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7590)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

For reference checkout the link:
https://team.dooth.com/s/W9aSwkg3cg8ca6d


Impact Analysis

Clear the filter in 'My Trips' without applying it, and check the 'Others' in 'My Earnings' from the menu.

Also available in: Atom PDF