catma icon indicating copy to clipboard operation
catma copied to clipboard

AnnotatedTextProvider should handle the case where a TagDefinition cannot be found

Open mpetris opened this issue 5 years ago • 2 comments

buildAnnotatedKeywordInContext(List<Range> ranges, KwicProvider kwicProvider, TagDefinition tagDefinition, String tagPath) can receive null for a tagDefinition

mpetris avatar Aug 02 '20 12:08 mpetris

java.lang.NullPointerException at de.catma.ui.module.annotate.annotationpanel.AnnotatedTextProvider.buildAnnotatedKeywordInContext(AnnotatedTextProvider.java:118) at de.catma.ui.module.analyze.visualization.kwic.KwicItemHandler.getKeywordDescription(KwicItemHandler.java:102) at de.catma.ui.module.analyze.visualization.kwic.KwicPanel.lambda$initComponents$59302d55$1(KwicPanel.java:449) at com.vaadin.ui.Grid$Column$1.generateData(Grid.java:908)

mpetris avatar Aug 02 '20 12:08 mpetris

Not clear why the tagDefinition can be null.

maltem-za avatar Sep 09 '21 15:09 maltem-za