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 162319 - Empty Find Issues window
Summary: Empty Find Issues window
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Bugzilla (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-09 15:36 UTC by Jan Stola
Modified: 2009-07-27 09:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2009-04-09 15:36:02 UTC
Steps to reproduce:
1. Start IDE.
2. Make sure that some Bugzilla Issue Tracker is registered.
3. Invoke Find Issue action => the window is opened and the loading of server data is started.
4. Close the window before the loading finishes (e.g. as soon as possible). 
   (I know, it doesn't look like a normal usage, but it happened to me when I accidentaly
   opened wrong(=Find Issues) window)
5. Open the window again => the Product, Component, etc. lists are empty.

Alternatively play the same game with Report as Issue window. The following exception is thrown in step 5 then:

java.lang.IllegalArgumentException: setSelectedIndex: 0 out of bounds
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:595)
	at org.netbeans.modules.bugzilla.issue.IssuePanel.reloadForm(IssuePanel.java:208)
	at org.netbeans.modules.bugzilla.issue.IssuePanel.setIssue(IssuePanel.java:169)
	at org.netbeans.modules.bugzilla.issue.IssueController.<init>(IssueController.java:59)
	at org.netbeans.modules.bugzilla.issue.BugzillaIssue.getController(BugzillaIssue.java:240)
	at org.netbeans.modules.bugtracking.ui.issue.IssueTopComponent$5.run(IssueTopComponent.java:307)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 Jan Stola 2009-04-09 15:39:14 UTC
When the window is closed then BugzillaCommand in BugzillaConfiguration.create() is interrupted, but cmd.hasFailed() 
still returns false and BugzillaConfiguration with null RepositoryConfiguration is created.
Comment 2 Jan Stola 2009-04-09 15:48:30 UTC
Fixed.

Modified file: http://hg.netbeans.org/cdev/rev/31300b3f0340