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 150654 - NullPointerException at org.netbeans.modules.jumpto.quicksearch.JavaTypeSearchProvider.evaluate
Summary: NullPointerException at org.netbeans.modules.jumpto.quicksearch.JavaTypeSearc...
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Jump To (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrey Yamkovoy
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-19 20:26 UTC by Exceptions Reporter
Modified: 2009-10-09 23:08 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 101416


Attachments
stacktrace (407 bytes, text/plain)
2008-10-19 20:26 UTC, Exceptions Reporter
Details
stacktrace (407 bytes, text/plain)
2008-10-22 09:49 UTC, gu6526
Details
stacktrace (1.71 KB, text/plain)
2009-05-29 13:05 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2008-10-19 20:26:27 UTC
Build: NetBeans IDE Dev (Build 200810141401)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.5, i386

User Comments:
ckutler: typing in the search box

ckutler: Just wanted to add a note that n, a, and t did not throw exceptions, but g did. This is in a Ruby on Rails project and I was testing whether Generate would show up, as it didn't awhile back.

GUEST: searching for a helper module using the Apple+I quick search, i had finished typing the entry and once i hit enter this error came up



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.jumpto.quicksearch.JavaTypeSearchProvider.evaluate(JavaTypeSearchProvider.java:63)
        at org.netbeans.modules.quicksearch.CommandEvaluator$1.run(CommandEvaluator.java:201)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Exceptions Reporter 2008-10-19 20:26:37 UTC
Created attachment 72225 [details]
stacktrace
Comment 2 gu6526 2008-10-22 09:49:41 UTC
Build: NetBeans IDE Dev (Build 20081016123104)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.5, i386

User Comments: 
using quicksearch

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.jumpto.quicksearch.JavaTypeSearchProvider.evaluate(JavaTypeSearchProvider.java:63)
        at org.netbeans.modules.quicksearch.CommandEvaluator$1.run(CommandEvaluator.java:201)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 3 gu6526 2008-10-22 09:49:45 UTC
Created attachment 72452 [details]
stacktrace
Comment 4 Exceptions Reporter 2009-02-13 12:41:45 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=101416
Comment 5 crishoj 2009-03-18 11:36:49 UTC
Please consider looking into this – it consistently happens when I do Quick Search.
Comment 6 Andrey Yamkovoy 2009-04-06 17:12:45 UTC
Can't reproduce. Could you please check this on the trunk build?
Comment 7 crishoj 2009-04-07 09:04:32 UTC
Doesn't seem to occur in 6.7M3
Comment 8 Alexei Mokeev 2009-04-16 06:17:57 UTC
Reassigning to utilities/jumpto owner
Comment 9 aldobrucale 2009-05-29 13:05:16 UTC
Build: NetBeans IDE Dev (Build 200905241401)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, i386

User Comments: 
Searching for a java type in quick search box

Stacktrace: 
org.openide.util.RequestProcessor$Item: task failed due to: java.lang.NullPointerException
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:267)
        at org.netbeans.modules.quicksearch.CommandEvaluator.runEvaluation(CommandEvaluator.java:199)
        at org.netbeans.modules.quicksearch.CommandEvaluator.evaluate(CommandEvaluator.java:98)
        at org.netbeans.modules.quicksearch.QuickSearchPopup.actionPerformed(QuickSearchPopup.java:160)
        at javax.swing.Timer.fireActionPerformed(Timer.java:271)
        at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
Comment 10 aldobrucale 2009-05-29 13:05:32 UTC
Created attachment 82970 [details]
stacktrace
Comment 11 Alexei Mokeev 2009-05-29 16:30:17 UTC
Valid issue, there were 22 exception logs since August 2008. Yet I do not believe that this is a P2.
Could someone please provide a reproducible case ? Thanks.
Comment 12 Victor Vasilyev 2009-10-06 15:28:11 UTC
A cause is the method typeDescriptor.getFileObject() can return null.
Comment 13 Victor Vasilyev 2009-10-07 00:38:51 UTC
Fixed in the main trunk
http://hg.netbeans.org/main/rev/dcce726f22a5
Comment 14 Quality Engineering 2009-10-09 23:08:17 UTC
Integrated into 'main-golden', will be available in build *200910091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/dcce726f22a5
User: Victor G. Vasilyev <vvg@netbeans.org>
Log: #150654 - NullPointerException at org.netbeans.modules.jumpto.quicksearch.JavaTypeSearchProvider.evaluate