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 194666 - NPE on showing include paths
Summary: NPE on showing include paths
Status: RESOLVED DUPLICATE of bug 194612
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: PC Other
: P2 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 18:49 UTC by Alexander Pepin
Modified: 2011-01-24 19:57 UTC (History)
0 users

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 Alexander Pepin 2011-01-24 18:49:26 UTC
Steps to reproduce:
- create Welcome sample
- set remote Solaris dev host, a lot of unresolved identifiers appear
- move mouse cursor onto #include <iostream> line with pressed "Ctrl" key
Result: Exception appears

java.lang.NullPointerException
	at org.netbeans.modules.cnd.completion.cplusplus.hyperlink.CsmIncludeHyperlinkProvider.appendPaths(CsmIncludeHyperlinkProvider.java:310)
	at org.netbeans.modules.cnd.completion.cplusplus.hyperlink.CsmIncludeHyperlinkProvider.getTooltipText(CsmIncludeHyperlinkProvider.java:267)
	at org.netbeans.modules.cnd.completion.cplusplus.hyperlink.CsmAbstractHyperlinkProvider.getTooltipText(CsmAbstractHyperlinkProvider.java:236)
	at org.netbeans.lib.editor.hyperlink.HyperlinkOperation$TooltipResolver.getValue(HyperlinkOperation.java:497)
	at org.netbeans.lib.editor.hyperlink.HyperlinkOperation$TooltipResolver.getValue(HyperlinkOperation.java:484)
	at org.netbeans.modules.editor.NbToolTip$Request.resolveTooltipText(NbToolTip.java:429)
	at org.netbeans.modules.editor.NbToolTip$Request.run(NbToolTip.java:357)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:425)
	at org.netbeans.modules.editor.NbToolTip.buildTip(NbToolTip.java:267)
	at org.netbeans.modules.editor.NbToolTip.buildToolTip(NbToolTip.java:119)
	at org.netbeans.modules.editor.NbEditorKit$NbBuildToolTipAction.actionPerformed(NbEditorKit.java:639)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
	at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137)
	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
	at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140)
	at org.netbeans.editor.ext.ToolTipSupport.updateToolTip(ToolTipSupport.java:511)
	at org.netbeans.editor.ext.ToolTipSupport.setToolTipVisible(ToolTipSupport.java:545)
	at org.netbeans.editor.ext.ToolTipSupport$Listener.actionPerformed(ToolTipSupport.java:1010)
	at org.netbeans.editor.WeakTimerListener.actionPerformed(WeakTimerListener.java:88)
	at javax.swing.Timer.fireActionPerformed(Timer.java:271)
	at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Alexander Pepin 2011-01-24 19:11:03 UTC
Another NPE occurs if I call Code Assistance -> Failed #include/#error Directives:

java.lang.NullPointerException
	at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog.guess(ErrorIncludeDialog.java:653)
	at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog.access$700(ErrorIncludeDialog.java:115)
	at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog$5.valueChanged(ErrorIncludeDialog.java:499)
	at javax.swing.JList.fireSelectionValueChanged(JList.java:1765)
	at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1779)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
	at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442)
	at javax.swing.JList.setSelectedIndex(JList.java:2179)
	at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog.addListeners(ErrorIncludeDialog.java:507)
	at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog.createComponents(ErrorIncludeDialog.java:212)
	at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog.<init>(ErrorIncludeDialog.java:147)
	at org.netbeans.modules.cnd.highlight.error.includes.ErrorIncludeDialog.showErrorIncludeDialog(ErrorIncludeDialog.java:191)
	at org.netbeans.modules.cnd.highlight.error.includes.FailedIncludesAction.performAction(FailedIncludesAction.java:86)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:295)
	at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:129)
	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
	at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:126)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:283)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
	at java.awt.Component.processMouseEvent(Component.java:6267)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6032)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 2 Alexander Simon 2011-01-24 19:57:35 UTC

*** This bug has been marked as a duplicate of bug 194612 ***