Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356208 - NPE when creating synchronized C/C++ project.
Summary: NPE when creating synchronized C/C++ project.
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT.sync (show other bugs)
Version: 5.0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Eblen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 10:26 EDT by Praful Hebbar CLA
Modified: 2011-10-14 11:58 EDT (History)
2 users (show)

See Also:


Attachments
screen shot showing the error. (427.78 KB, image/png)
2011-08-30 10:26 EDT, Praful Hebbar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Praful Hebbar CLA 2011-08-30 10:26:47 EDT
Created attachment 202424 [details]
screen shot showing the error.

Remote machine may need to be configured with git.

Steps to reproduce this:
1> Click on New->Project->Sync C/C++ Project. Enter project name. 
2> Choose empty makefile project with remote XL C/C++ tool chain.  
3> Give a remote location for the project instead of default location. 
4> Click on Next twice and click on finish.

Stack trace:
An internal error occurred during: "Remote Synchronization".
java.lang.NullPointerException
	at org.eclipse.ptp.rdt.sync.git.core.GitServiceProvider.synchronize(GitServiceProvider.java:282)
	at org.eclipse.ptp.internal.rdt.sync.core.ResourceChangeListener$SynchronizeJob.run(ResourceChangeListener.java:73)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Also got this error:
Unhandled event loop exception
java.lang.NullPointerException
	at org.eclipse.ptp.rdt.sync.core.BuildConfigurationManager.createLocalConfiguration(BuildConfigurationManager.java:667)
	at org.eclipse.ptp.rdt.sync.ui.wizards.NewRemoteSyncProjectWizard.performFinish(NewRemoteSyncProjectWizard.java:88)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
  ......


Attached a screenshot of the error.
Comment 1 Praful Hebbar CLA 2011-09-20 06:11:24 EDT
Note that accepting the default location for the project location on the first wizard page works fine and does not result in this NPE. It seems that only if we enter  a remote location for the project in step 3 described earlier we get this error.
Comment 2 John Eblen CLA 2011-09-22 10:39:07 EDT
Yes, sync does not support having a remote project directory. I've added this as a known issue on the wiki.
Comment 3 Greg Watson CLA 2011-10-14 11:58:07 EDT
Closing this as fixed. I've opened bug 360997 to address problems with the new synchronized project wizard.