Fix NPE in content assist in SpellcheckableMessageArea
commit92c9b27e50d86f0889c7fdb30d927de454bcdec5
authorThomas Wolf <thomas.wolf@paranor.ch>
Wed, 22 Feb 2017 18:33:37 +0000 (22 19:33 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Fri, 24 Feb 2017 08:43:36 +0000 (24 04:43 -0400)
treec2cb595d15c48c812c55eeabda2f7e68e87d41e7
parent74ef92dfb095adf0ab2d359bd6ff939f2711dbdc
Fix NPE in content assist in SpellcheckableMessageArea

Deleted annotations do not have a position. Be more careful with
computing which annotations to consider. Also don't do anything if
there is no annotation model at all.

Bug: 512584
Change-Id: I489c378f9e2f66003a9a9702a11c0428f304fbae
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java