AlexFalappa / nb-springboot

NetBeans IDE plugin supporting programming with Spring Boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter Spring Boot dependencies is broken

AlexFalappa opened this issue · comments

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)
...

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.