[jbosside-issues] [JBoss JIRA] Commented: (JBIDE-445) Selecting FileSystem destination gives weird value and NPE (after a while)

Marshall Culpepper (JIRA) jira-events at lists.jboss.org
Mon Feb 19 15:30:31 EST 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-445?page=comments#action_12353553 ] 
            
Marshall Culpepper commented on JBIDE-445:
------------------------------------------

I don't think I'm doing anything special here.. I'm guessing this is Window's behavior (or maybe Eclipse internal code?). Do you have a suggestion how I could get around this?

The code looks like this:

DirectoryDialog dialog = new DirectoryDialog(getShell());
String currentPath = destinationText.getText();
if (currentPath != null && currentPath.length() > 0 && !inWorkspace)
{
	dialog.setFilterPath(destinationText.getText());
}

String path = dialog.open();
if (path != null)
{
	nodeDestination = new Path(path);
	updateDestinationViewer();
}

When I set a breakpoint on "String path = dialog.open()", the resulting path is the "default folder".. I have no way of accessing whatever it is you typed into the entry. I don't think there's a way around this behavior..



> Selecting FileSystem destination gives weird value and NPE (after a while)
> --------------------------------------------------------------------------
>
>                 Key: JBIDE-445
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-445
>             Project: JBoss IDE
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Max Andersen
>         Assigned To: Marshall Culpepper
>
> Entering c:\temp\somethingthatdoesnotexist (a non existent directory) apparently
> makes it select C:\Documents and settings\.... as if it ignored my entry.
> Then for a few seconds nothing is responsive and I get:
> java.lang.NullPointerException
> 	at java.util.Hashtable.get(Hashtable.java:336)
> 	at org.jboss.ide.eclipse.packages.core.model.internal.PackagesModel.getProjectPackages(PackagesModel.java:272)
> 	at org.jboss.ide.eclipse.packages.ui.wizards.pages.PackageInfoWizardPage.validate(PackageInfoWizardPage.java:253)
> 	at org.jboss.ide.eclipse.packages.ui.wizards.pages.PackageInfoWizardPage.access$0(PackageInfoWizardPage.java:190)
> 	at org.jboss.ide.eclipse.packages.ui.wizards.pages.PackageInfoWizardPage$3.widgetSelected(PackageInfoWizardPage.java:104)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list