Skip to content

Commit c12af1d

Browse files
asosnoviytheshadowco
authored andcommitted
Заглушка на неожиданный null
1 parent 4058a27 commit c12af1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/hover/VariableSymbolMarkupContentBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ public MarkupContent getContent(VariableSymbol symbol) {
6969
.map(VariableDescription::getPurposeDescription)
7070
.ifPresent(trailingDescription -> addSectionIfNotEmpty(markupBuilder, trailingDescription));
7171

72-
addSectionIfNotEmpty(markupBuilder, symbol.getType());
72+
if (symbol.getType() != null) {
73+
addSectionIfNotEmpty(markupBuilder, symbol.getType());
74+
}
7375

7476
String content = markupBuilder.toString();
7577

0 commit comments

Comments
 (0)