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 177058

Summary: NullPointerException at org.netbeans.modules.editor.completion.CompletionImpl.stateChanged
Product: editor Reporter: Alexander Simon <alexvsimon>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic, soldatov, vv159170
Priority: P1 Keywords: REGRESSION
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 162381
Attachments: stacktrace

Description Alexander Simon 2009-11-18 03:08:12 UTC
Build: NetBeans IDE Dev (Build 091116-40d55f122c08)
VM: Java HotSpot(TM) Client VM, 1.5.0_17-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_17-b04
OS: SunOS, 5.10, x86

User Comments:
alexvsimon: - set ANSI formatting syle for C, C++ and headers
- create Welcome
- format source file and header
- delete project with sources
- open Tools->Options
- NPE



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.completion.CompletionImpl.stateChanged(CompletionImpl.java:395)
        at javax.swing.JViewport.fireStateChanged(JViewport.java:1357)
        at javax.swing.JViewport.reshape(JViewport.java:837)
        at java.awt.Component.setBounds(Component.java:1849)
        at java.awt.Component.setBounds(Component.java:1978)
        at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:869)
Comment 1 Alexander Simon 2009-11-18 03:08:17 UTC
Created attachment 91225 [details]
stacktrace
Comment 2 Alexander Simon 2009-11-18 03:15:47 UTC
It seems regression after fix:
BZ#171927 Code Completion window disappear after pressing key
Comment 3 soldatov 2009-11-18 03:26:12 UTC
This regression appeared between NetBeans IDE Dev (Build 200911091156) and NetBeans IDE Dev (Build 200911170201) (latest builds from bits.netbeans.org).
And 92 of 93 automatic tests fails. It will be very very bad if this problem will not be fixed in NetBeans 6.8 release.
Comment 4 Dusan Balek 2009-11-19 03:08:57 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/892363e05fff
Comment 5 Alexander Simon 2009-11-19 08:59:18 UTC
Thank you very match for fix.
Comment 6 Quality Engineering 2009-11-20 03:14:40 UTC
Integrated into 'main-golden', will be available in build *200911200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/892363e05fff
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #177058: NullPointerException at org.netbeans.modules.editor.completion.CompletionImpl.stateChanged - fixed.
Comment 7 Quality Engineering 2009-11-23 18:09:45 UTC
Integrated into 'main-golden', will be available in build *200911231619* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/da48c81b5417
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #177058: NullPointerException at org.netbeans.modules.editor.completion.CompletionImpl.stateChanged - fixed.
Comment 8 Jiri Prox 2009-11-24 08:33:56 UTC
v.