todotxt / todo.txt-ios

Official Todo.txt iOS app for managing your todo.txt file stored in Dropbox.
http://todotxt.org
GNU General Public License v3.0
380 stars 109 forks source link

Fix crash on conflict #199

Closed chuckbjones closed 10 years ago

chuckbjones commented 10 years ago

This _may_ fix issues #191 and #192.

Someone on the mailing list mentioned that renaming their 'Todo' directory to 'todo' fixed the issue, reminding me of this issue we had with the Android app. Changing my directory to 'Todo' made the app think there was a conflict, then it crashed in the simulator while attempting to display the conflict error.

So, there were two fixes here:

  1. Do a case-insensitive comparison when checking for a conflict, just like we had to do for the Android app.
  2. Fix the crash by passing a string to the method that was expecting one, instead of a DropboxFile object.