Skip to content

Commit

Permalink
Заглушка на неожиданный null
Browse files Browse the repository at this point in the history
  • Loading branch information
asosnoviy committed Jul 28, 2023
1 parent 16bc7ad commit 6f600be
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public MarkupContent getContent(VariableSymbol symbol) {
.map(VariableDescription::getPurposeDescription)
.ifPresent(trailingDescription -> addSectionIfNotEmpty(markupBuilder, trailingDescription));

addSectionIfNotEmpty(markupBuilder, symbol.getType());
if (symbol.getType() != null) {
addSectionIfNotEmpty(markupBuilder, symbol.getType());
}

String content = markupBuilder.toString();

Expand Down

0 comments on commit 6f600be

Please sign in to comment.