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 for code completion at @MimeRegistration(mimeType - at org.netbeans.modules.apisupport.project.layers.LayerUtils.getEffectiveSystemFilesystem | ||
---|---|---|---|
Product: | apisupport | Reporter: | Revivius |
Component: | Project | Assignee: | Martin Kozeny <mkozeny> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | markiewb |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 210587 |
Attachments: |
stacktrace
Shows the issue, editor-mimelookup is a dependency |
Description
Revivius
2014-07-07 21:13:34 UTC
Created attachment 147924 [details]
stacktrace
You are probably missing editor.mimelookup module in your platform and when using code completion for mimeType property of @MimeRegistration(mimeType = "text/html", service = ...) annotation, project owner of MimeRegistration interface is not found. Created attachment 158381 [details]
Shows the issue, editor-mimelookup is a dependency
(In reply to Martin Kozeny from comment #2) > You are probably missing editor.mimelookup module in your platform and when > using code completion for mimeType property of @MimeRegistration(mimeType = > "text/html", service = ...) annotation, project owner of MimeRegistration > interface is not found. Reopen. See https://netbeans.org/bugzilla/attachment.cgi?id=158381 A screenshot from a simple maven-based nbm module with a dependency to editor-mimelookup. But the completion does not work. The code in LayerUtils.getEffectiveSystemFilesystem should be at least NPE-safe. No code completion items for code like // caret at | @MimeRegistration(mimeType = "text/x|", service = CompletionProvider.class) would be OK, if there is no dependency. But not a NPE. |