Skip to content
Snippets Groups Projects
Commit 2a10e62d authored by Simon Barner's avatar Simon Barner
Browse files

- forceFullUpdate(): Avoid NPE if called before first ordinary update

parent f3f45da3
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,9 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect
/** Enforces a full update of the view based on {@link #lastRootElement}. */
private void forceFullUpdate() {
lastAnnotationEntriesMap.clear();
update(lastRootElement);
if(lastRootElement != null) {
update(lastRootElement);
}
}
/** Sets {@link #isUpdateEnabled}. If the update is re-enabled, the view is refreshed. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment