Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix: concurrent modification in bus stop provider #1197

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

limwa
Copy link
Member

@limwa limwa commented Mar 7, 2024

This PR fixes a ConcurrentModificationError.

Stacktrace:

ConcurrentModificationError: Concurrent modification during iteration: _Map len:0.
  File "compact_hash.dart", line 714, in _CompactIterator.moveNext
  File "bus_stop_provider.dart", line 30, in BusStopProvider.fetchUserBusTrips
  File "<asynchronous suspension>"
  File "bus_stop_provider.dart", line 62, in BusStopProvider.removeUserBusStop

Review checklist

  • Terms and conditions reflect the current change
  • Contains enough appropriate tests
  • If aimed at production, writes a new summary in whatsnew/whatsnew-pt-PT
  • Properly adds an entry in changelog.md with the change
  • If PR includes UI updates/additions, its description has screenshots
  • Behavior is as expected
  • Clean, well-structured code

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Merging #1197 (be1c3ae) into master (d12d444) will decrease coverage by 0%.
Report is 2 commits behind head on master.
The diff coverage is 0%.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1197   +/-   ##
======================================
- Coverage      17%     17%   -0%     
======================================
  Files         229     229           
  Lines        6974    6974           
======================================
- Hits         1151    1144    -7     
- Misses       5823    5830    +7     

@limwa limwa marked this pull request as draft March 7, 2024 23:07
@limwa limwa force-pushed the limwa/hotfix/concurrent-modification-bus-provider branch 2 times, most recently from 91c27d4 to 024c40c Compare March 7, 2024 23:54
@limwa limwa force-pushed the limwa/hotfix/concurrent-modification-bus-provider branch from 024c40c to be1c3ae Compare March 7, 2024 23:54
@limwa limwa marked this pull request as ready for review March 7, 2024 23:54
@limwa limwa requested review from bdmendes, LuisDuarte1 and a team March 7, 2024 23:54
@bdmendes bdmendes merged commit ff4e87e into master Mar 8, 2024
6 checks passed
@bdmendes bdmendes deleted the limwa/hotfix/concurrent-modification-bus-provider branch March 8, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants