FIX: Prevent Null pointer exception in fileinstall watcher
An OVERFLOW event might have a context that is null. As a consequence the Path.resolve call will throw a null pointer exception
@@ -176,7 +176,11 @@ public abstract class Watcher implements Closeable {
// Context for directory entry event is the file name of entry
Path name = ev.context();
- Path child = dir.resolve(name);
+ Path child = null;
+
+ if(name!=null){
+ child = dir.resolve(name);
+ }
debug("Processing event %s on path %s", kind, child);
