Skip to content

Commit 9a442cb

Browse files
author
Jia Liu
committed
fix: psi element text should not be null #123
1 parent f38b53a commit 9a442cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/main/kotlin/cc/unitmesh/idea/context/JavaVariableContextBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class JavaVariableContextBuilder : VariableContextBuilder {
2222

2323
return VariableContext(
2424
psiElement,
25-
psiElement.text,
25+
psiElement.text?:"",
2626
psiElement.name,
2727
containingMethod,
2828
containingClass,

0 commit comments

Comments
 (0)