Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
index 64e9e86ad..2505b4688 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-* Copyright (c) 2004, 2008 Tasktop Technologies and others.
+ * Copyright (c) 2004, 2008 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Tasktop Technologies - initial API and implementation
+ * Peter Stibrany - fix for NPE (bug 247077)
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.ui.wizards;
@@ -79,8 +80,9 @@ public class NewRepositoryWizard extends Wizard implements INewWizard {
@Override
public boolean canFinish() {
- return selectConnectorPage.isPageComplete() && !(getContainer().getCurrentPage() == selectConnectorPage)
- && settingsPage != null && settingsPage.isPageComplete();
+ return (selectConnectorPage == null || selectConnectorPage.isPageComplete())
+ && !(getContainer().getCurrentPage() == selectConnectorPage) && settingsPage != null
+ && settingsPage.isPageComplete();
}
@Override

Back to the top