mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-03 22:54:15 +00:00
Only call diff_similar if diff not null
This commit is contained in:
parent
d742af7951
commit
989218fe1a
|
@ -154,12 +154,18 @@ public class Commit : Ggit.Commit
|
|||
}
|
||||
}
|
||||
}
|
||||
catch {}
|
||||
|
||||
try
|
||||
catch (Error e)
|
||||
{
|
||||
diff.find_similar(null);
|
||||
} catch {}
|
||||
stderr.printf("Error when getting diff: %s\n", e.message);
|
||||
}
|
||||
|
||||
if (diff != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
diff.find_similar(null);
|
||||
} catch {}
|
||||
}
|
||||
|
||||
return diff;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue