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 47017 - "cannot return null..." when Searching for files with [statuses]
Summary: "cannot return null..." when Searching for files with [statuses]
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-09 14:13 UTC by dmladek
Modified: 2004-09-22 08:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot of SearchResult window (72.21 KB, image/png)
2004-08-09 15:03 UTC, dmladek
Details
snapshot of SearchResult window with highlighted java node (48.89 KB, image/png)
2004-08-09 16:08 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2004-08-09 14:13:42 UTC
Product Version       = NetBeans IDE Dev (Build
200408081800)
  Operating System      = Linux version
2.4.22-1.2115.nptl running on i386
  Java; VM; Vendor      = 1.5.0-beta3; Java
HotSpot(TM) Client VM 1.5.0-beta3-b62; Sun
Microsystems Inc.
  Java Home             = /usr/local/java/jdk1.5.0/jre
  System Locale; Encod. = cs_CZ (nb); ISO-8859-2
  Home Dir; Current Dir = /usr/local/home/delphym;
/usr/local/forte/forte3/NBdev-last/netbeans/bin
  IDE Install; User Dir =
/usr/local/home/delphym/NBdev-last/platform4;
/usr/local/home/delphym/.netbeans/dev
-------------------------------------------------------------------------------

Following Warning appears in console/ide.log after
fix of issue #46727 (Or rather say, fix removed
neverendless Exceptions so, now you can see this
warning now)

Warning: org.netbeans.modules.search.ResultView
should override preferredId()
Node "NbBrowse.java"
[org.netbeans.modules.search.ResultModel$FoundNode]
cannot return null from getIcon(). See
Node.getIcon contract.


Node "NbBrowse.java"
[org.netbeans.modules.search.ResultTreeChildren$FoundNode]
cannot
return null from getIcon(). See Node.getIcon contract.
Node "NbBrowse.java"
[org.netbeans.modules.search.ResultTreeChildren$FoundNode]
cannot
return null from getIcon(). See Node.getIcon contract.
Node "Foo.java"
[org.netbeans.modules.search.ResultTreeChildren$FoundNode]
cannot
return null from getIcon(). See Node.getIcon contract.
Node "Bar.java"
[org.netbeans.modules.search.ResultTreeChildren$FoundNode]
cannot
return null from getIcon(). See Node.getIcon contract.
---snip----


if you want see the whole ide.log it is available at:
http://www.netbeans.org/issues/showattachment.cgi?attach_id=16693


Reproduction:
==============
-Add new CVS in Versioning Manager (eg. nb_all
with checkouted standard modules from
cv.netbeans.org  site)
-In Versioning Explorer click on root node of
mounted FS and select "Find..."
-In Find dialog choose TAB named "Status"
and here holding CTRL select [Local] and
[Up-to-date] statuses
- and press Search button
Comment 1 dmladek 2004-08-09 14:16:08 UTC
when a few nodes are found, the warning messages are printed into console.

Jarda (whos fixed the NPE,AIOOBE from the issue #46727 ) adviced me to
enter another issue against this warning:

 "cannot return null"
Comment 2 Jan Becicka 2004-08-09 14:20:17 UTC
I don't see any relation to java module. Correct me if I'm wrong.
Comment 3 Jaroslav Tulach 2004-08-09 14:23:14 UTC
The search node returns null icon. That can happen for more reasons,
but as it delegates to underlaying data node, the simplest one is that
under stressload, the java module is broken and sometimes returns null
icon from its data object's nodes.
Comment 4 Jan Becicka 2004-08-09 14:38:05 UTC
Dane, can you take a screenshot for me to see what icon is shown in
the search result window? Thanks.
Comment 5 dmladek 2004-08-09 15:03:24 UTC
Created attachment 16698 [details]
snapshot of SearchResult window
Comment 6 dmladek 2004-08-09 15:06:25 UTC
ScreenShot of Search Result Window is attached. Hope it help
Comment 7 Jan Becicka 2004-08-09 15:44:10 UTC
I don't see any JavaNode on the screen shot.
Comment 8 dmladek 2004-08-09 16:03:46 UTC
OK, another attempt...
Comment 9 dmladek 2004-08-09 16:08:24 UTC
Created attachment 16699 [details]
snapshot of SearchResult window with highlighted java node
Comment 10 Marian Petras 2004-09-20 14:00:27 UTC
I could not reproduce the bug.

A big part of the search functionality has been redesigned since this
bug report was files and I hope the bug is fixed now. Nevertheless, I
will wait for the reporter whether he is able to reproduce it. He said
he will try so tomorrow.
Comment 11 Marian Petras 2004-09-22 08:36:17 UTC
Since the reporter will not do the verification, I am marking the bug
as FIXED.