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 267235

Summary: NullPointerException at org.netbeans.modules.editor.hints.HintsUI$4$1.run
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: Hints & AnnotationsAssignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal CC: abien, akobberup, alexvsimon, alied, ehsavoie, hmichel, IrianR, jockel, markiewb, mclaborn, mkhramov, mrpc, muellermi, nleck, thurka, tmysik, vasouv, zmirc
Priority: P1 Keywords: REGRESSION
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 225349
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
IDE log - CTRL + Click on a class name to navigate to it
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description Exceptions Reporter 2016-07-21 09:28:19 UTC
This issue was reported manually by thurka.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build 20160721-b8669d01e9f3)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14
OS: Mac OS X

User Comments:
GUEST: 1) open heap dump
2) go to OQL Console
3) use following OQL:
select toHtml(x)+" "+toHtml(x.id) from org.netbeans.modules.masterfs.filebasedfs.naming.FolderName x 
4) type '.' after x.id

GUEST: Debugging




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.hints.HintsUI$4$1.run(HintsUI.java:1035)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1419)
   at org.netbeans.modules.editor.hints.HintsUI$4.run(HintsUI.java:1031)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
Comment 1 Exceptions Reporter 2016-07-21 09:28:20 UTC
Created attachment 161360 [details]
stacktrace
Comment 2 Alexander Simon 2016-07-21 11:37:02 UTC
Created attachment 161362 [details]
stacktrace

goto type
Comment 3 alied 2016-07-21 16:01:01 UTC
Created attachment 161364 [details]
stacktrace

Crl-Clicked on a class declaration to go to that type's file in the editor.
Comment 4 Tomas Hurka 2016-07-21 16:05:32 UTC
This looks like recent regression. All reports are from one build: 160721.
Comment 5 Exceptions Reporter 2016-07-21 18:25:02 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225349
Comment 6 mclaborn 2016-07-21 18:28:01 UTC
Created attachment 161367 [details]
stacktrace

(I think) Ctrl + alt + click on a method to get to a subclass implementation
Comment 7 alied 2016-07-21 19:19:01 UTC
Created attachment 161369 [details]
stacktrace

just opened a class from Open Type dialog (Ctrl+O)
Comment 8 Maksim Khramov 2016-07-21 20:40:01 UTC
Created attachment 161374 [details]
stacktrace

Edit java code
Comment 9 nleck 2016-07-22 04:37:05 UTC
Created attachment 161377 [details]
stacktrace

Navigate to
Comment 10 nleck 2016-07-22 04:40:04 UTC
Created attachment 161378 [details]
stacktrace

nav
Comment 11 zmirc 2016-07-23 16:29:00 UTC
Created attachment 161396 [details]
IDE log - CTRL + Click on a class name to navigate to it
Comment 12 Exceptions Reporter 2016-07-23 16:31:09 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225349
Comment 13 Exceptions Reporter 2016-07-23 16:34:05 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225349
Comment 14 nleck 2016-07-25 06:55:05 UTC
Created attachment 161408 [details]
stacktrace

rename
Comment 15 IrianR 2016-07-25 07:07:06 UTC
Created attachment 161410 [details]
stacktrace

Clicked on a method in the navigfator window.
Comment 16 mrpc 2016-07-25 10:34:08 UTC
Created attachment 161416 [details]
stacktrace

Tried to select some lines of code to delete them
Comment 17 muellermi 2016-07-25 11:46:08 UTC
Created attachment 161418 [details]
stacktrace

move up within editor (cantent scrolls whilst keeping up-arrow pressed)
Comment 18 muellermi 2016-07-25 13:07:08 UTC
Created attachment 161421 [details]
stacktrace

edit Java
Comment 19 muellermi 2016-07-25 13:10:08 UTC
Created attachment 161422 [details]
stacktrace

edit Java
Comment 20 alied 2016-07-25 17:55:08 UTC
Created attachment 161432 [details]
stacktrace

Opening a class from the "Open Type" dialog (Ctrl+O)
Comment 21 abien 2016-07-26 02:40:10 UTC
Created attachment 161439 [details]
stacktrace

Happened during navigation through code
Comment 22 Michel Graciano 2016-07-26 11:16:10 UTC
Created attachment 161444 [details]
stacktrace

Moving around java files
Comment 23 Exceptions Reporter 2016-07-26 11:16:16 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225349
Comment 24 Michel Graciano 2016-07-26 11:43:11 UTC
Created attachment 161445 [details]
stacktrace

Moving around in a Java file
Comment 25 Tomas Mysik 2016-07-26 12:13:10 UTC
Created attachment 161448 [details]
stacktrace

editing php file
Comment 26 Milutin Kristofic 2016-07-26 12:18:18 UTC
This was caused by change in Bug #258786 It was introduced Highlight with attrs set on null. 

This is simple check, I need to discuss about this with Mila.
http://hg.netbeans.org/jet-main/rev/85fd3cacc63f
Comment 27 Milutin Kristofic 2016-07-26 12:33:22 UTC
*** Bug 267285 has been marked as a duplicate of this bug. ***
Comment 28 Quality Engineering 2016-07-27 01:49:55 UTC
Integrated into 'main-silver', will be available in build *201607270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/85fd3cacc63f
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #267235 - NullPointerException at org.netbeans.modules.editor.hints.HintsUI$4$1.run