[gitg] Do not use null repository in remote manager
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Do not use null repository in remote manager
- Date: Sun, 15 Mar 2015 09:17:41 +0000 (UTC)
commit 216f76a05158196feed26b8f4a61d35417b1e7bd
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Mar 15 10:17:18 2015 +0100
Do not use null repository in remote manager
gitg/gitg-remote-manager.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-remote-manager.vala b/gitg/gitg-remote-manager.vala
index d4b0e93..0132503 100644
--- a/gitg/gitg-remote-manager.vala
+++ b/gitg/gitg-remote-manager.vala
@@ -62,6 +62,11 @@ class RemoteManager : Object, GitgExt.RemoteLookup
d_insteadof = new InsteadOf[10];
d_insteadof.length = 0;
+ if (d_window.repository == null)
+ {
+ return;
+ }
+
Ggit.Config config;
try
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]