forTEXT / catma

Computer Assisted Text Markup and Analysis
https://www.catma.de
GNU General Public License v3.0
88 stars 8 forks source link

AnnotatedTextProvider should handle the case where a TagDefinition cannot be found #225

Open mpetris opened 4 years ago

mpetris commented 4 years ago

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

mpetris commented 4 years ago

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)

maltem-za commented 2 years ago

Not clear why the tagDefinition can be null.