jakdept / dir

Provides a Go package to return folder structure under a given point recursively, watching for updates.
MIT License
1 stars 0 forks source link

Crash when a folder is moved #6

Open jakdept opened 6 years ago

jakdept commented 6 years ago

Crashes with a nil pointer dereference when a folder is moved:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x73d9eb]

goroutine 24586 [running]:
github.com/jakdept/dir.(*Tracker).updateDir(0xc42033c080, 0xb2c260, 0xc4339d4960)
        /Users/jack/go/src/github.com/jakdept/dir/dir.go:113 +0xbb
created by github.com/jakdept/dir.(*Tracker).processEvents.func1
        /Users/jack/go/src/github.com/jakdept/dir/dir.go:147 +0xb1