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 110427 - Exception when Find in project or Replace dialog is opened
Summary: Exception when Find in project or Replace dialog is opened
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: T9Y
: 111430 111982 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-20 14:46 UTC by Jana Maleckova
Modified: 2007-08-09 15:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
110427 (834 bytes, text/plain)
2007-07-20 14:47 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-07-20 14:46:49 UTC
Product Version: NetBeans IDE Dev (Build 070720) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
open these two dialogs from menu Edit | Find in Projects...
open these two dialogs from menu Edit | Replace in Projects...
an exception is thrown

StackTrace:
===========
java.lang.AssertionError
	at org.netbeans.modules.search.SearchScopeRegistry.hasProjectSearchScopes(SearchScopeRegistry.java:373)
	at org.netbeans.modules.search.FindInFilesAction.getName(FindInFilesAction.java:274)
	at org.openide.util.actions.SystemAction.getValue(SystemAction.java:157)
	at org.netbeans.lib.uihandler.LogFormatter.paramToString(LogFormatter.java:346)
	at org.netbeans.lib.uihandler.LogFormatter.format(LogFormatter.java:304)
Comment 1 Jana Maleckova 2007-07-20 14:47:43 UTC
Created attachment 45438 [details]
110427
Comment 2 Marian Petras 2007-08-06 12:05:13 UTC
Confirmed. (NB build 070802, JDK 1.5.0_12, Linux, i386)
Comment 3 Marian Petras 2007-08-06 12:08:38 UTC
*** Issue 111430 has been marked as a duplicate of this issue. ***
Comment 4 Jana Maleckova 2007-08-06 12:10:23 UTC
*** Issue 111982 has been marked as a duplicate of this issue. ***
Comment 5 Marian Petras 2007-08-06 12:21:55 UTC
Fixed (in the trunk).

The assertion check was expressing just an assumption. The fact that the assumption is not met does not break the
functionality so I just removed the assertion check.

Modified file:
   utilities/src/org/netbeans/modules/search/SearchScopeRegistry.java   (1.4)

Diff:
http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/SearchScopeRegistry.java?r1=1.3&r2=1.4&diff_format=u
Comment 6 Jana Maleckova 2007-08-09 15:46:49 UTC
verified on

Product Version: NetBeans IDE Dev (Build 070809) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)