enviroCar / enviroCar-app

enviroCar Android Application
https://envirocar.org
GNU General Public License v3.0
88 stars 154 forks source link

Resolved app crashing due to null track id generated when user stops the track recording immediately #909

Closed anamansari062 closed 2 years ago

anamansari062 commented 2 years ago

Fixes #908

The app was crashing because the user was stopping the track before the track id was generated Thatswhy in org.envirocar.storage/dao/EnvirocarDBImpl there was a null exception coming as we were trying to convert null track id to string

Changes done

Added a null check in org.envirocar.storage/dao/EnvirocarDBImpl to prevent the app from crashing

Testing

https://user-images.githubusercontent.com/85510030/163068801-daded0d2-aa65-4fcb-b072-9bf195b437eb.mov