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 202649 - java.lang.NullPointerException if code completion is launched
Summary: java.lang.NullPointerException if code completion is launched
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
: 203725 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-26 07:53 UTC by soldatov
Modified: 2011-10-17 12:35 UTC (History)
2 users (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 soldatov 2011-09-26 07:53:33 UTC
NetBeans 7.1beta
Solaris 11 Express

Sceanrio:
- Create InputOutput project
- Open io.c file
- Move cursor on scanf
- Call Code Completion
===>

java.lang.NullPointerException
	at org.netbeans.modules.cnd.makeproject.NativeProjectProvider.execute(NativeProjectProvider.java:885)
	at org.netbeans.modules.cnd.completion.doxygensupport.ManDocumentation.createDocumentationForName(ManDocumentation.java:224)
	at org.netbeans.modules.cnd.completion.doxygensupport.ManDocumentation.getDocumentationForName(ManDocumentation.java:142)
	at org.netbeans.modules.cnd.completion.doxygensupport.ManDocumentation.getDocumentation(ManDocumentation.java:121)
	at org.netbeans.modules.cnd.completion.doxygensupport.ManDocumentation.getDocumentation(ManDocumentation.java:116)
	at org.netbeans.modules.cnd.completion.doxygensupport.ManDocumentation.getDocumentation(ManDocumentation.java:110)
	at org.netbeans.modules.cnd.completion.doxygensupport.CompletionDocumentationProviderImpl.createDocumentationImpl(CompletionDocumentationProviderImpl.java:109)
	at org.netbeans.modules.cnd.completion.doxygensupport.CompletionDocumentationProviderImpl.access$000(CompletionDocumentationProviderImpl.java:72)
	at org.netbeans.modules.cnd.completion.doxygensupport.CompletionDocumentationProviderImpl$DocQuery.query(CompletionDocumentationProviderImpl.java:146)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1973)
Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
Comment 1 Andrew Krasny 2011-09-26 08:25:09 UTC
Fixed with:
http://hg.netbeans.org/cnd-main/rev/6dab021e256b
Comment 2 Andrew Krasny 2011-09-26 09:09:42 UTC
pushed to 71_beta branch as well... 
http://hg.netbeans.org/releases/rev/7f641f5eb215
Comment 3 Vladimir Voskresensky 2011-09-26 09:23:10 UTC
fix is safe and correct
Comment 4 soldatov 2011-09-26 09:26:08 UTC
verified in cnd-build-5948-on-20110926 build
Comment 5 Quality Engineering 2011-09-27 14:11:58 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/6dab021e256b
User: Andrew Krasny <akrasny@netbeans.org>
Log: Bug #202649 - java.lang.NullPointerException if code completion is launched
Comment 6 Vladimir Voskresensky 2011-09-27 14:21:11 UTC
there were no beta respins after this fix, so it is not in Beta bits.
Comment 7 soldatov 2011-09-30 07:15:58 UTC
(In reply to comment #6)
> there were no beta respins after this fix, so it is not in Beta bits.
It is not a true. New build appeared.

verified in NetBeans IDE 7.1 Beta (Build 201109300133)
Comment 8 Alexander Simon 2011-10-17 12:35:28 UTC
*** Bug 203725 has been marked as a duplicate of this bug. ***