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 176986 - Code completion throws NPE javax.swing.ImageIcon.<init>
Summary: Code completion throws NPE javax.swing.ImageIcon.<init>
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Petr Nejedly
URL:
Keywords: REGRESSION
Depends on: 177063
Blocks:
  Show dependency tree
 
Reported: 2009-11-17 04:53 UTC by Alexandr Scherbatiy
Modified: 2009-11-19 04:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 162284


Attachments
stacktrace (3.64 KB, text/plain)
2009-11-17 04:53 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-11-17 04:53:46 UTC
Build: NetBeans IDE Dev (Build 200911170201)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(ImageIcon.java:190)
        at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionItem$KeywordItem.getIcon(JavaFXCompletionItem.java:399)
        at org.netbeans.modules.javafx.editor.completion.JavaFXCompletionItem.render(JavaFXCompletionItem.java:235)
        at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.paintComponent(CompletionJList.java:307)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:134)
Comment 1 Alexandr Scherbatiy 2009-11-17 04:53:49 UTC
Created attachment 91163 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2009-11-17 04:56:54 UTC
  Product Version         = NetBeans IDE Dev (Build 200911170201) (#3dca89945b8c)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Type in the editor 'pu'
- Press <Ctrl+Space>
 
 The exception pops up.
Comment 3 Alexandr Scherbatiy 2009-11-17 06:24:09 UTC
After activating the Java module the issue is not reproduced.

It seems that the main problem in the full distribution is that the activating JavaFX module does not activate the Java module.
Comment 4 Petr Nejedly 2009-11-18 05:40:51 UTC
Added the runtime dependency on java editor module.
http://hg.netbeans.org/javafx/rev/4f4ec502e950
Comment 5 Alexandr Scherbatiy 2009-11-19 04:40:00 UTC
verified in Build 200911190201