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 201924 - [71cat] NullPointerException at org.netbeans.modules.java.editor.whitelist.WhiteListTaskProvider$4.run
Summary: [71cat] NullPointerException at org.netbeans.modules.java.editor.whitelist.Wh...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 202198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-10 10:31 UTC by paolosca
Modified: 2011-09-16 13:17 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181059


Attachments
stacktrace (1.79 KB, text/plain)
2011-09-10 10:31 UTC, paolosca
Details
stacktrace (1.79 KB, text/plain)
2011-09-10 11:02 UTC, paolosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2011-09-10 10:31:00 UTC
Build: NetBeans IDE Dev (Build 201109090600)
VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
paolosca: Editing a php file, pressed ctrl+click (go to declaration) on pg_numrows() in the following line:

$numrows = (!$result) ? 0 : pg_numrows($result);

Beside getting the exception "Go to declaration" opened pgsql.php and placed the caret in the right line as expected.

MackSix: Clicked "Show tasks for currently edited file only." on the upper left side of the Tasks Window.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.editor.whitelist.WhiteListTaskProvider$4.run(WhiteListTaskProvider.java:321)
   at org.netbeans.modules.java.editor.whitelist.WhiteListTaskProvider$4.run(WhiteListTaskProvider.java:308)
   at org.netbeans.modules.parsing.lucene.support.IndexManager$2.call(IndexManager.java:136)
   at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:168)
   at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:356)
   at org.netbeans.modules.parsing.lucene.support.IndexManager.readAccess(IndexManager.java:133)
Comment 1 paolosca 2011-09-10 10:31:03 UTC
Created attachment 110597 [details]
stacktrace
Comment 2 paolosca 2011-09-10 11:02:51 UTC
Created attachment 110598 [details]
stacktrace

Opened pgsql.php using go to declaration. Now every time I click on the pgsql.php editor tab this exception pops up.
Comment 3 Tomas Zezula 2011-09-12 09:10:41 UTC
Fixed jet-main 815dc14aa41d
Comment 4 Quality Engineering 2011-09-13 16:04:53 UTC
Integrated into 'main-golden', will be available in build *201109130600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/815dc14aa41d
User: Tomas Zezula <tzezula@netbeans.org>
Log: #201924:[71cat] NullPointerException at org.netbeans.modules.java.editor.whitelist.WhiteListTaskProvider$4.run
Comment 5 Tomas Zezula 2011-09-16 13:17:22 UTC
*** Bug 202198 has been marked as a duplicate of this bug. ***