Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2016-11-26 17:42:30 -0500
committerMatthias Sohn2016-11-27 16:39:57 -0500
commit8c1d6e7cddda255ea165a0e568eedb3003507ffc (patch)
treebea9266129a583a06b3edc49ac4d94fd81b2cdd6
parentfca4b977171a4f510def0b20a5d9b4f5506df6c8 (diff)
downloadegit-stable-4.5.tar.gz
egit-stable-4.5.tar.xz
egit-stable-4.5.zip
Fix NPE in RepositorySearchDialogstable-4.5
Bug: 508192 Change-Id: Iec73645aacc8d49b60a93ba4f6b8b9ec9e4d3295 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java
index 30d446ac8..586176d20 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java
@@ -430,6 +430,9 @@ public class RepositorySearchDialog extends WizardPage {
// check depth and if we are not in private git folder ".git" itself
if ((depth != 0) && !(resolved != null && isSameFile(root, resolved))) {
File[] children = root.listFiles();
+ if (children == null) {
+ return;
+ }
for (File child : children) {
if (monitor.isCanceled()) {
return;

Back to the top