Skip to content

Commit ddc23b7

Browse files
authored
Merge pull request #893 from korpling/avoid-npe
Use stored ui reference instead of getUI()
2 parents 4024a3b + 226d6c9 commit ddc23b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/corpus_tools/annis/gui/CorpusBrowserPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private void fetchAnnotationsInBackground(UI ui) {
209209
}
210210
}
211211

212-
getUI().access(() -> {
212+
ui.access(() -> {
213213

214214
TreeSet<CorpusBrowserEntry> nodeAnnoItems = new TreeSet<>();
215215
TreeSet<CorpusBrowserEntry> edgeAnnoItems = new TreeSet<>();

0 commit comments

Comments
 (0)