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.java.source.usages.ClassFileUtil.encodeType | ||
---|---|---|---|
Product: | java | Reporter: | ionuion <ionuion> |
Component: | Source | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hyzoom, jiriprox, misterm |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 196192 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace |
Description
ionuion
2012-12-19 01:17:49 UTC
Created attachment 129522 [details]
stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=196192 lambda branch Created attachment 130299 [details]
stacktrace
Created attachment 130304 [details]
stacktrace
Created attachment 131166 [details]
stacktrace
Created attachment 133037 [details]
stacktrace
NPE when calling code completion at position marked by |
public static void main (String[] args) {
Person[] people = {};
Person a = new Person();
// Arrays.sort(people, Person::compareByAge);
// MyIface ddd = (name) -> {return name+"";};
testReference("i1", (name)-> name+"x");
testReference("i2", MyInnerClass::innerMethod);
testReference("java.version", people::|getProperty);
}
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/0cd12866e297 |