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

Summary: NullPointerException at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveToolTip
Product: php Reporter: Exceptions Reporter <exceptions_reporter>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED FIXED    
Severity: normal CC: karel_barel, larsomat, padraigdoran, sdedic, slavikme
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 196820
Attachments: stacktrace

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