Skip to content

Commit 16bb1a9

Browse files
committed
GH-1855: fixed NPE
1 parent c8c562e commit 16bb1a9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans/ComponentIndexer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ public void index(TypeDeclaration typeDeclaration, SpringIndexerJavaContext cont
108108
private void createSymbol(TypeDeclaration type, SpringIndexerJavaContext context, TextDocument doc) throws BadLocationException {
109109
Bean beanDefinition = createBean(type, context);
110110

111+
if (beanDefinition == null) {
112+
return;
113+
}
114+
111115
// event publisher checks
112116
boolean usesEventPublisher = false;
113117
for (InjectionPoint injectionPoint : beanDefinition.getInjectionPoints()) {

0 commit comments

Comments
 (0)