France-ioi / AlgoreaBackend

Backend for the new Algorea platform
MIT License
1 stars 2 forks source link

Fix nil pointer dereference when the schedule propagation endpoint call returns an error #1053

Closed GeoffreyHuck closed 3 months ago

GeoffreyHuck commented 4 months ago

Error: "runtime error: invalid memory address or nil pointer dereference" When there is an error, the response is nil, therefore it made the code crash.

Fix and add test that covers the issue.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (343a4ad) to head (ad0b4dc).

:exclamation: Current head ad0b4dc differs from pull request most recent head ddbd961. Consider uploading reports for the commit ddbd961 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1053 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 236 236 Lines 14222 14226 +4 ========================================= + Hits 14222 14226 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.