daniel-lerch / vocup

Vocabulary trainer.
https://www.microsoft.com/store/apps/9N6W2H3QJQMM
GNU Affero General Public License v3.0
9 stars 3 forks source link

Moving files to subfolder crashes vocup #6

Closed Twometer closed 6 years ago

Twometer commented 6 years ago

I tried moving all the files in the Vokabelhefte/ directory to a subfolder and Vocup crashed with the following error message:

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Vocup
  StackTrace:
   at Vocup.Controls.FileTreeView.MainWatcher_Deleted(Object sender, FileSystemEventArgs e) in D:\GitHub Repositories\vocup\src\Vocup\Controls\FileTreeView.cs:line 238

Can be reproduced by the following steps:

  1. Have some files in Vokabelhefte/
  2. Start vocup
  3. Create a subfolder in Vokabelhefte/
  4. Move all your files in Vokabelhefte/ to that subfolder
  5. There goes your crash
daniel-lerch commented 6 years ago

Is this issue fixed with 15d298c0ecbaeff7902c0f36a56f627d675a9797?

Twometer commented 6 years ago

Seems fixed