Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-09-13 01:11:00 +0000
committerspingel2008-09-13 01:11:00 +0000
commit87a41fb9415da7ffa92a9810fdc54cf68da4425f (patch)
treee07d39f8aacf8754b0793b33f4c351b9e0dbfa18
parent38a4a14a6b7a62cba3cc21d7c92394fa687ac792 (diff)
downloadorg.eclipse.mylyn.tasks-87a41fb9415da7ffa92a9810fdc54cf68da4425f.tar.gz
org.eclipse.mylyn.tasks-87a41fb9415da7ffa92a9810fdc54cf68da4425f.tar.xz
org.eclipse.mylyn.tasks-87a41fb9415da7ffa92a9810fdc54cf68da4425f.zip
RESOLVED - bug 247077: AddTaskRepositoryHandler uses invalid parameter ID
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247077
-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