You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_TypeError: Null check operator used on a null value
File "mosque_helpers_mixins.dart", line 136, in MosqueHelpersMixin.actualTimes.<fn>
File "mosque_helpers_mixins.dart", line 136, in MosqueHelpersMixin.actualTimes
File "mosque_helpers_mixins.dart", line 251, in MosqueHelpersMixin.useTomorrowTimes
File "mosque_manager.dart", line 212, in MosqueManager.fetchMosque.<fn>
File "Api.dart", in Api.getMosqueTimesStream
...
(25 additional frame(s) were not displayed)
The text was updated successfully, but these errors were encountered:
A TypeError is occurring in the actualTimes method within MosqueHelpersMixin. The error appears when trying to convert prayer time strings to TimeOfDay objects, specifically in the mapping operation:
The error occurs due to several potential scenarios:
Invalid time string formats in the prayer times data
Null values in the time strings
Failed parsing of time strings to TimeOfDay objects
Non-null assertion operator (!) used on potentially null values
Reproduction Steps
Using Direct Implementation
final mosqueManager =MosqueManager();
mosqueManager.times =Times(
fajr:"25:70", // Invalid hours and minutes
dhuhr:"invalid", // Non-numeric string
asr:"", // Empty string
maghrib:"10:", // Incomplete format
isha:null, // Null value
);
// This will trigger the TypeError
mosqueManager.actualTimes();
Sentry Issue: ANDROIDTV-6T
The text was updated successfully, but these errors were encountered: