This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NullPointerException at org.netbeans.modules.remote.impl.fs.RemoteFileSystem$RootFileObject.getAttribute | ||
---|---|---|---|
Product: | cnd | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Remote | Assignee: | Vladimir Kvashin <vkvashin> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 228404 |
Attachments: | stacktrace |
Description
Exceptions Reporter
2017-03-14 16:09:56 UTC
Created attachment 163832 [details]
stacktrace
I see two things here: 1) The code is NPE prone: FileOperationsProvider.getDefault() return value is never checked for null, but it can return null of for some strange reason remotefs.versioning module is absent. This should be fixed in code. I think FileOperationsProvider.getDefault() should return fake result in such case. 2) But I do not understand how can remotefs.versioning module be absent. It provides key "org.netbeans.modules.remotefs.versioning" and remote.impl, in which the NPE occurs, requires this key. So there is something strange in user dir. The conclusion: - we should fix the bug in code - user can work this around via using a fresh user dir. If a userdir is broken, many things can become messed up. Downgrading to P4. |