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 165899 - NullPointerException at org.netbeans.modules.scala.editing.IndexedElement.getOrigin
Summary: NullPointerException at org.netbeans.modules.scala.editing.IndexedElement.get...
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ dcaoyuan
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-24 17:31 UTC by dickwall
Modified: 2009-05-24 17:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150457


Attachments
stacktrace (1.84 KB, text/plain)
2009-05-24 17:31 UTC, dickwall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dickwall 2009-05-24 17:31:45 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.30-020630rc4-generic, i386

User Comments:
GUEST: scala????????????????

import scala.

GUEST: I tried to use the auto completition feature to get a list of available imports to my scala project (i.e. i pressed STRG + SPACE)

GUEST: entering:
import javax.

dickwall: Attempting code completion on "import scala.dbc.", code completion in the Scala plugin in general seems pretty broken right now.

GUEST: adding an import with Scala
import javax.swing.Label

probably should be:
import javax.swing.JLabel

GUEST: Typing an import statement:

import scala.

After the dot, while waiting for the completion popup, the error occurred.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.scala.editing.IndexedElement.getOrigin(IndexedElement.java:1068)
        at org.netbeans.modules.scala.editing.ScalaCompletionItem.getRhsHtml(ScalaCompletionItem.java:166)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.getRightHtmlText(GsfCompletionItem.java:182)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem.getPreferredWidth(GsfCompletionItem.java:498)
        at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.getPreferredSize(CompletionJList.java:325)
        at org.netbeans.modules.editor.completion.CompletionJList.setData(CompletionJList.java:160)
Comment 1 dickwall 2009-05-24 17:31:50 UTC
Created attachment 82707 [details]
stacktrace