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.

Bug 268125

Summary: NullPointerException at
Product: java Reporter: matvei
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226327
Attachments: stacktrace

Description matvei 2016-09-20 23:19:12 UTC
This bug was originally marked as duplicate of bug 113518, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) Client VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Windows 10

User Comments:
matvei: Creating a generic Comparator.  Here's the code snippet, caret position indicated by "|":

    private static final Comparator<MinimumDetailsInfo> sorter = Comparator
            .comparing|(mdi -> mdi.getCategorySpeed());

As soon as I typed in "<>", the exception popped up.  If I do any other editing on that line of code, another identical exception is thrown by the IDE.  If I try to save the file, IDE deadlocks while maxing one of the CPU cores.

Comment 1 matvei 2016-09-20 23:19:15 UTC
Created attachment 162142 [details]