GH-1068: added missing null check

This commit is contained in:
Martin Lippert
2023-07-14 12:55:51 +02:00
parent 151ad12d25
commit cc15b8ead8

View File

@@ -419,7 +419,7 @@ public class SpringIndexerJava implements SpringIndexer {
CachedBean[] beans;
CachedDiagnostics[] diagnostics;
if (cachedSymbols == null || cachedBeans == null) {
if (cachedSymbols == null || cachedBeans == null || cachedDiagnostics == null ) {
List<CachedSymbol> generatedSymbols = new ArrayList<CachedSymbol>();
List<CachedBean> generatedBeans = new ArrayList<CachedBean>();
List<CachedDiagnostics> generatedDiagnostics = new ArrayList<CachedDiagnostics>();