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 39512 - Import Management Tool throws exception if you press a button while its processing.
Summary: Import Management Tool throws exception if you press a button while its proce...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-02 20:56 UTC by mimnagh
Modified: 2007-09-26 09:14 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 mimnagh 2004-02-02 20:56:06 UTC
If I process a large file with the tool it can
take a to complete the "Resolve Identifiers"
stage. A message displays "Please Wait". However
if I'm impatient and press the "Finish" button The
tool crashes ( a real pain if I'm in the middle of
processing a lot of files) with this Exception:

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.netbeans.modules.java.imptool.ImpDataSource.createRootFQNNode(ImpDataSource.java:278)
	at
org.netbeans.modules.java.imptool.ImpDataSource.runSilentFromNextStage(ImpDataSource.java:552)
	at
org.netbeans.modules.java.imptool.ImpToolExecutor.execute(ImpToolExecutor.java:85)
	at
org.netbeans.modules.java.imptool.ImpToolAction.performAction(ImpToolAction.java:41)
	at
org.openide.util.actions.NodeAction.performAction(NodeAction.java:184)
	at 
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:175)
	at
org.netbeans.core.ModuleActions$1.run(ModuleActions.java:97)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:670)
Comment 1 mimnagh 2004-02-02 21:02:34 UTC
I think the obvious solution is to disable the "Next" and "Finish"
buttons while the "Please Wait" message is displayed. This should
protect against my itchy trigger finger.

Dominic
Comment 2 Chris Ledantec 2004-02-03 09:53:56 UTC
agreed. buttons should be disabled while the action is finished. if it's an action that 
should be or could be cancled it a secondary dialog with a status bar and cancel 
button should be considered as well.
Comment 3 psuk 2004-02-29 01:43:27 UTC
Import Management tool should be replaced by Autoimport functionality
and tasklist integration in promoD.
No plan to touch that part for NB36.
Comment 4 psuk 2004-06-22 18:05:38 UTC
IMT was replaced, closing as WONTFIX.
Comment 5 Quality Engineering 2007-09-20 10:56:48 UTC
Reorganization of java component