Only call diff_similar if diff not null

This commit is contained in:
Jesse van den Kieboom 2014-06-30 22:01:58 +02:00
parent d742af7951
commit 989218fe1a

View file

@ -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;
}