Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332867 - Remote Connection with space in name gives NPE
Summary: Remote Connection with space in name gives NPE
Status: RESOLVED WORKSFORME
Alias: None
Product: PTP
Classification: Tools
Component: Remote Tools (show other bugs)
Version: 5.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-17 12:09 EST by Beth Tibbitts CLA
Modified: 2010-12-17 13:56 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Tibbitts CLA 2010-12-17 12:09:02 EST
when i make a new connection with "Remote Host" as the name (WITH SPACE) i get a npe when i hit the browse button 

Using Eclipse 3.7 indigo M4  I20101208-1300
PTP installed from indigo M4 staging is  5.0.0.201012140925	

New remote c/c++ project (this is the first one i tried)
leave the names as "Remote Host" with spaces in the name
enter the remote address and userid and password
click the 'browse' button to find directory

NPE popup with no additional information

Error log shows this:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:4091)
at org.eclipse.swt.SWT.error(SWT.java:4006)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3765)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3456)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.ptp.remote.remotetools.ui.RemoteToolsUIConnectionManager.openConnectionWithProgress(RemoteToolsUIConnectionManager.java:113)
at org.eclipse.ptp.rdt.ui.wizards.RemoteProjectContentsLocationArea.checkConnection(RemoteProjectContentsLocationArea.java:244)
at org.eclipse.ptp.rdt.ui.wizards.RemoteProjectContentsLocationArea.access$8(RemoteProjectContentsLocationArea.java:241)
at org.eclipse.ptp.rdt.ui.wizards.RemoteProjectContentsLocationArea$5.widgetSelected(RemoteProjectContentsLocationArea.java:443)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

Looking for the original bug about space in the name....
Comment 1 Beth Tibbitts CLA 2010-12-17 12:11:34 EST
Here is the previous bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=325650 but it presented problem at a different point
Comment 2 Greg Watson CLA 2010-12-17 12:29:20 EST
The steps between 'New remote c/c++ project (this is the first one i tried)' and 'leave the names as "Remote Host" with spaces in the name' are missing.

Also, how do you know it's related to the space in the name? Are you able to browse when there is no space in the name?
Comment 3 Beth Tibbitts CLA 2010-12-17 12:48:44 EST
yes i tried one right after that with the usual abe.ncsa.uiuc.edu as the name and it worked fine.
will post more details....  assuming i can still get it to fail.   argh.
Comment 4 Beth Tibbitts CLA 2010-12-17 13:56:19 EST
Cannot reproduce. argh.
Wondering if it was a network glitch, remote host possibly not reachable at that time or something.