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 224113 - NullPointerException at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveToolTip
Summary: NullPointerException at org.netbeans.modules.csl.editor.completion.GsfComplet...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 00:17 UTC by Exceptions Reporter
Modified: 2013-01-10 03:31 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 196820


Attachments
stacktrace (1.76 KB, text/plain)
2012-12-21 00:17 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-12-21 00:17:48 UTC
This bug was originally marked as duplicate of bug 222011, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build nbms-and-javadoc-9884-on-20121219)
VM: Java HotSpot(TM) Client VM, 20.12-b01, Java(TM) SE Runtime Environment, 1.6.0_37-b06
OS: Windows 7

User Comments:
karel_barel: this exceptions appeared after confirmation of code hint in following line of code:

first it was:

....
$invitation->setEmail($account->getAccountEmail());
....

after refactoring it should be:

$invitation->setSenderEmail($account->getAccountEmail());


so i started to type after the "...->set", IDE gave me correct hint to fill setSenderEmail, i pressed return, IDE filled right method name so the code looked like this:

$invitation->setSenderEmailEmail($account->getAccountEmail());

and exception appeared

padraigdoran: Ctrl+space

karel_barel: typing name od declared variable $invitations in following line

$violations = $this->getValidator()->validate($invitatio*<=- HERE APPEARED THE EXCEPTION);

GUEST: constantly getting errors with autocomplete

larsomat: typing $sf in html-template in symfony1 project

GUEST: just typing in a php file




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveToolTip(GsfCompletionProvider.java:441)
   at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.access$500(GsfCompletionProvider.java:247)
   at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery$1.run(GsfCompletionProvider.java:333)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:584)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
Comment 1 Exceptions Reporter 2012-12-21 00:17:51 UTC
Created attachment 129602 [details]
stacktrace
Comment 2 Svata Dedic 2013-01-03 15:08:50 UTC
Seems as the SPI provided null instead of valid NONE value. The core implementation should be robust enough to handle it, though.
Comment 3 Svata Dedic 2013-01-03 15:26:20 UTC
Please try to identify the cause - it seems in PHP first; the exception is raised because completion provider returns null even though it's not a permitted value.
Comment 4 Ondrej Brejla 2013-01-03 15:58:48 UTC
Can someone provide me a case, when the problem is reproducible? I'm not able to do that. Thanks in advance!
Comment 5 Ondrej Brejla 2013-01-09 13:39:21 UTC
Because noone answered, then:

Fixed in web-main #0f55a01a2612
Comment 6 Quality Engineering 2013-01-10 03:31:14 UTC
Integrated into 'main-golden', will be available in build *201301100107* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0f55a01a2612
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #224113 - NullPointerException at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveToolTip