result = super.performFinish();
try {
- if (newProject !=null) {
+ if (newProject != null) {
PlatformProjectNature.addNatureToProject(newProject, null);
}
} catch (CoreException e) {
result = super.performFinish();
try {
- if (newProject !=null) {
+ if (newProject != null) {
File file = new File(newProject.getLocation().toString() + "/.git");
if (file.exists()) {
Repository gitRepos = FileRepositoryBuilder.create(file);
} catch (IOException e) {
DialogUtil.openMessageDialog("Warning: Converting the project to Git failed!");
}
- commander.ApplySharedProject(newProject, getContainer());
+ if (newProject != null) {
+ commander.ApplySharedProject(newProject, getContainer());
+ }
}
UserLogger.end(PlatformUserInteraction.CLONE_GITPROJECT);
return result;