From 0f7c47beb06ce84d4478eb614c2d23908a397b24 Mon Sep 17 00:00:00 2001 From: Mikhail Sennikovsky Date: Fri, 10 Jun 2005 15:54:38 +0000 Subject: [PATCH] The fix for the bug that occured when trying to create a new managed project in the directory where the standard make project is located. When the "finish" wizard button was pressed the wizard page did not close and no warning/error messages were displayed because of a null pointer exception. --- .../cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java index f6bad1ec611..d215f97d2b4 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java +++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java @@ -225,6 +225,9 @@ public class NewManagedProjectWizard extends NewCProjectWizard { */ protected void doRunEpilogue(IProgressMonitor monitor) { // Get my initializer to run + if(newProject == null) + return; + IStatus initResult = ManagedBuildManager.initBuildInfoContainer(newProject); if (initResult.getCode() != IStatus.OK) { // At this point, I can live with a failure