Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2016-05-23 21:35:01 +0000
committerMatthias Sohn2016-05-24 23:44:15 +0000
commit3421a454f2b378c43322387f1d7ebd735972c645 (patch)
tree0fbf342d4f7b22e1e6af42e30d47d5844f6ec900
parent3f42da84dce53ef98ce3e13279a67d33a74cf1de (diff)
downloadegit-3421a454f2b378c43322387f1d7ebd735972c645.tar.gz
egit-3421a454f2b378c43322387f1d7ebd735972c645.tar.xz
egit-3421a454f2b378c43322387f1d7ebd735972c645.zip
Fix NPE in GitSelectRepositoryPage.refreshRepositoryList()
Bug: 494353 Change-Id: Ic90bbb72cdd3c27a969a0da856a7f496901e7052 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectRepositoryPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectRepositoryPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectRepositoryPage.java
index bdd6259ef6..283aa6f34d 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectRepositoryPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectRepositoryPage.java
@@ -217,7 +217,7 @@ public class GitSelectRepositoryPage extends WizardPage {
private void refreshRepositoryList() {
List<String> dirsBefore = (List<String>) tv.getInput();
List<String> dirsAfter = util.getConfiguredRepositories();
- if (!dirsBefore.containsAll(dirsAfter)) {
+ if (dirsBefore != null && !dirsBefore.containsAll(dirsAfter)) {
tv.setInput(dirsAfter);
for (String dir : dirsAfter)
if (!dirsBefore.contains(dir))

Back to the top