Fix NPE in CommitDragSourceListener.getSelectedCommit
commitc6dd32348fefb605211958f01840505805879fd5
authorMichael Keppler <Michael.Keppler@gmx.de>
Sun, 3 Mar 2019 09:01:49 +0000 (3 10:01 +0100)
committerMichael Keppler <michael.keppler@gmx.de>
Mon, 18 Mar 2019 09:18:22 +0000 (18 05:18 -0400)
treeaf30c46d10a3d1cd4b0dbd4f711bea48e5deb68f
parent3bffc6c5a32c96fe6245e4a1534f732f2626662e
Fix NPE in CommitDragSourceListener.getSelectedCommit

It seems not very reasonable to have no selection when starting to drag,
but not impossible. Also add null annotations to the involved methods to
prove the absence of further NPEs.

Bug:544993
Change-Id: I4ba3e1598fa1ba849da7acc0c4f4ec544828b9a4
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java