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 85926 - NPE in hyperlink tooltip resolving
Summary: NPE in hyperlink tooltip resolving
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-09-27 17:55 UTC by Petr Hrebejk
Modified: 2007-01-17 10:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2006-09-27 17:55:33 UTC
Exception occured when:
1) I have the source code (see below)
2) Hold Ctrl key
3) Get the mouse cursor over the "abcdef" text
4) wait a second to the hyperlink tooltip

Source code:
public class Midlet extends MIDlet {abcdef
}

Exception:
java.io.IOException
at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:322)
[catch] at
org.netbeans.modules.editor.java.GoToSupport.performGoTo(GoToSupport.java:76)
at
org.netbeans.modules.editor.java.GoToSupport.getGoToElementTooltip(GoToSupport.java:67)
at
org.netbeans.modules.java.editor.hyperlink.JavaHyperlinkProvider.getShortDescription(JavaHyperlinkProvider.java:103)
at
org.netbeans.lib.editor.hyperlink.HyperlinkOperation$1.run(HyperlinkOperation.java:92)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:525)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:957)
Caused by: java.lang.NullPointerException
at
org.netbeans.api.java.source.SourceUtils.getEnclosingTypeElement(SourceUtils.java:225)
at
org.netbeans.modules.editor.java.GoToSupport$DisplayNameElementVisitor.visitType(GoToSupport.java:215)
at
org.netbeans.modules.editor.java.GoToSupport$DisplayNameElementVisitor.visitType(GoToSupport.java:171)
at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:827)
at
javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:68)
at org.netbeans.modules.editor.java.GoToSupport$1.run(GoToSupport.java:109)
at org.netbeans.modules.editor.java.GoToSupport$1.run(GoToSupport.java:79)
at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:320)
... 6 more
Comment 1 Jan Lahoda 2006-10-10 15:50:04 UTC
Should be fixed.
Comment 2 Max Sauer 2006-10-16 12:39:20 UTC
This does not happen anymore. Verified.

---
Product Version         = NetBeans IDE Dev (Build 061016)
Operating System        = Linux version 2.6.12-1.1390_FC4smp running on i386
Java; VM; Vendor; Home  = 1.5.0_05; Java HotSpot(TM) Server VM 1.5.0_05-b05; Sun
Microsystems Inc.; /usr/jdk1.5.0_05/jre
System Locale; Encoding = en_US (nb); UTF-8