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 167358 - NullPointerException at org.netbeans.modules.php.editor.verification.PHPHintsProvider.computeHints
Summary: NullPointerException at org.netbeans.modules.php.editor.verification.PHPHints...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomasz Slota
URL: http://statistics.netbeans.org/except...
Keywords:
: 155835 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-19 10:20 UTC by stanley_tweedle
Modified: 2009-08-18 14:04 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 152601


Attachments
stacktrace (1.39 KB, text/plain)
2009-06-19 10:20 UTC, stanley_tweedle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stanley_tweedle 2009-06-19 10:20:41 UTC
Build: NetBeans IDE 6.7 RC3 (Build 200906142201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
GUEST: i recognized this error long after it probably occurred, HOWEVER, i was experiencing problems w/ the cursor, which led me to exit, then restart the IDE. let me explain.

Having first experimented with the code-snippets (not the "PHP-Palette" (which, [humor me] is not in fact a PHP Palette, but an HTML code-snippets GUI, and rather not the picture of an intuitive tool), but those which are found, in a list / grid under options (can't pull that up now for the proper terminology. my apologies). I learned how to use the snippets (activating them with SHIFT+SPACE, created my own for CSS (e.g. Code: wql = '${selection}' ${cursor} Description: Wrap sel in quotes as string-literal). It was during my experimentation, and thereafter creating my own, that i realized the cursor would not function properly. I could not delete, i could not move the cursor with arrow-keys, etc. (but typing chars did work). After shutdown, and restart, I came back to the terminal several hours later, to find the IDE i

stanley_tweedle: tweaking options. confident the greater cause is in checking the the "Experimental" php code parser [warnings], i am attempting to determine if it is one, multiple, or all (i.e. simply checking the "top" box to enable that set of code error processing, vs various combinations of the sub-options i expect will continue to throw exceptions, until i am satisfied with my resolve)

GUEST: Opened any php file cause stream of hint errors.

GUEST: ..........................................................................

GUEST: ctrl+z

GUEST: Fuck Fuck fuck!!! Bug Waterfall...



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.php.editor.verification.PHPHintsProvider.computeHints(PHPHintsProvider.java:143)
        at org.netbeans.modules.csl.hints.infrastructure.HintsTask$1.run(HintsTask.java:115)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
        at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:99)
Comment 1 stanley_tweedle 2009-06-19 10:20:48 UTC
Created attachment 83796 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-06-19 10:21:02 UTC
This issue already has 51 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152601
Comment 3 Marian Mirilovic 2009-06-19 14:32:04 UTC
Sounds like recent regression in NB 6.7 RC2 .... Filip, could you please look at this ?

stanley_tweedle, 
could you please help us to find steps to reproduce ? Thanks in advance.
Comment 4 Tomasz Slota 2009-06-19 14:38:37 UTC
Fixed in trunk. The fix was based on the stack trace, I did not manage to reproduce the problem. I guess we need the steps to reproduce it in order to 
integrate the fix into 6.7. fzamboj is working on that.

http://hg.netbeans.org/web-main/rev/ac7f50fe66b8

PS. I doubt it's a recent regression, there has been no changes in this area on the PHP-side for months. The bug could have manifested itself after some 
change in CSL though.
Comment 5 Tomasz Slota 2009-06-19 14:58:16 UTC
Radku, can you please review the change?
Comment 6 rmatous 2009-06-19 15:28:00 UTC
fix is about additional check and thus is safe and shouldn't cause any additional regression
Comment 7 Filip Zamboj 2009-06-19 15:39:32 UTC
I still can't reproduce. Any ides are more than welcomed. 

I tried to play arround with hints on XP (as all exception reports are from XP) and on Ubuntu but it works for me so far. 
Comment 8 Tomasz Slota 2009-06-19 16:34:26 UTC
change transplated to release67 (http://hg.netbeans.org/release67/rev/5cca583d401c)
Comment 9 Marian Mirilovic 2009-06-19 16:44:24 UTC
cc-ing also Vita ....

It was introduced between NB 6.7 RC1 & RC2 ... Vita - any idea of suspicious changes in editor area ?
Comment 10 Quality Engineering 2009-06-20 08:07:02 UTC
Integrated into 'main-golden', will be available in build *200906200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ac7f50fe66b8
User: Tomasz Slota <tslota@netbeans.org>
Log: #167358: NPE @ PHPHintsProvider.computeHints()
Comment 11 stanley_tweedle 2009-06-23 03:11:06 UTC
hi, all. my apologies for not revisiting this issue. i understand now what is expected, and hope to contribute in a 
more positive manner, henceforth. 

(i.e. i see [apparently, as of 10 mins or so] it is not effective to "reply" to the mails received)

So, i wish to repeat something i mentioned there. I beg your pardon for the redundancy, if you received the mail. I'm 
sorry to see the commentary which followed my "ownership" of this issue. indeed, "guest", which opened the issue is 
stanely_tweedle (myself), but i don't believe i can claim anything beyond the "second" line, attributed to the 
username, "stanley_tweedle". wait... i see it reads "additional comments"... i dunno. i guess there will be some 
learnig curve here. 

as we said back in the day: "so it goes." ( http://www.last.fm/music/american_sona/sOna+(the+Black+Disc)/So+it+Goes )
(extrapolate) 

i'll do a profile, time allowing-- and i know-- i'm preaching to the choir, right?

best regards. i'll try to be operating above a 5th-grade-level, next time 'round.
rock n roll. thanks to whomever resolved this issue. looking forward to the next new 6.7 d/l
(not yet, or did i miss something? i'm guessing a nightly is available? but nothing beyond 6.7 RC3)... oops sorry too 
many Q's. bye! anyway you do, please keep rockin!

OH! one last Q:

must I status this as "closed" now? [sorry!]
Comment 12 Filip Zamboj 2009-06-23 12:42:49 UTC
Hi Stanley, 

I do my best to understand what were you trying to say in the last comment but I'm sorry ... I don't get it. The only
think we were asking for were some steps to reproduce this issue because they were not provided. We were trying many
thinks based on comments from users but we didn't reproduce. This issue is already solved, however, we are still not
sure this fix solved the issue. 

Therefore, if you have some steps you can give us so we could verify this issue, we would very appreciate if you put
them as additional comment. 

THanks a lot. 
Comment 13 Filip Zamboj 2009-06-24 13:48:23 UTC
This issue has been already transplanted to FCS build. However, this issue can't be verified because we are not able to
reproduce it. If somebody can, then add here steps to reproduce, please. Thanks a lot.  
Comment 14 rmatous 2009-08-18 14:04:08 UTC
*** Issue 155835 has been marked as a duplicate of this issue. ***