You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Marc (JIRA)" <ji...@apache.org> on 2016/05/06 13:17:12 UTC
[jira] [Created] (FELIX-5250) NullpointerException in fileinstall
when watched directory is a mapped-network-drive
Marc created FELIX-5250:
---------------------------
Summary: NullpointerException in fileinstall when watched directory is a mapped-network-drive
Key: FELIX-5250
URL: https://issues.apache.org/jira/browse/FELIX-5250
Project: Felix
Issue Type: Bug
Components: File Install
Affects Versions: fileinstall-3.5.2
Environment: Windows
Reporter: Marc
When watching a directory on a mapped-network-drive, a NullpointerException occurs
{noformat}java.lang.NullPointerException: null
at sun.nio.fs.WindowsPath.toWindowsPath(WindowsPath.java:373) [na:1.7.0_79]
at sun.nio.fs.WindowsPath.resolve(WindowsPath.java:525) [na:1.7.0_79]
at sun.nio.fs.WindowsPath.resolve(WindowsPath.java:44) [na:1.7.0_79]
at org.apache.felix.fileinstall.internal.Watcher.processEvents(Watcher.java:179) [na:na]
at org.apache.felix.fileinstall.internal.WatcherScanner.scan(WatcherScanner.java:63) [na:na]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:302) [na:na]
{noformat}
{code:java|title=Watcher.java}
Path name = ev.context(); // <- returns null
Path child = dir.resolve(name);
{code}
Usecase: I need to specify a personal-network-drive because of user-passwords which get passed to ConfigAdmin.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)