Filter Spring Boot dependencies is broken
AlexFalappa opened this issue · comments
Alessandro Falappa commented
Typing in the filter field in Spring Initializr project wizard or Add Spring Boot Dependencies dialog causes a NullPointerException
:
SEVERE [global]
java.lang.NullPointerException
at com.github.alexfalappa.nbspringboot.projects.initializr.BootDependenciesPanel.cbFilter(BootDependenciesPanel.java:358)
at com.github.alexfalappa.nbspringboot.projects.initializr.BootDependenciesPanel.filter(BootDependenciesPanel.java:339)
at com.github.alexfalappa.nbspringboot.projects.initializr.InitializrProjectPanelVisual2$FilterFieldListener.doFilter(InitializrProjectPanelVisual2.java:250)
at com.github.alexfalappa.nbspringboot.projects.initializr.InitializrProjectPanelVisual2$FilterFieldListener.insertUpdate(InitializrProjectPanelVisual2.java:231)
at java.desktop/javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:203)
...
Alessandro Falappa commented
This bug only manifests when frequent dependencies from previous sessions make a group empty.
For example if Lombok, Configuration Processor and Developer Tools have been previously used the Developer Tools group is empty and disappears from an internal data structure causing the NPE.