netbeans-gradle-project icon indicating copy to clipboard operation
netbeans-gradle-project copied to clipboard

NPE at project opening

Open makiam opened this issue 6 years ago • 2 comments

Steps to reproduce: Product Version: Apache NetBeans IDE Dev (Build 20180616-462079a28a6f) Java: 1.8.0_144; Java HotSpot(TM) 64-Bit Server VM 25.144-b01 Gradle: 5 I try to open spring-boot-web-application project from https://github.com/pkainulainen/gradle-examples.git and see this exception: java.lang.NullPointerException at org.netbeans.gradle.project.model.issue.ModelLoadIssueReporter.getImportantCause(ModelLoadIssueReporter.java:262) at org.netbeans.gradle.project.model.issue.ModelLoadIssueReporter.reportDependencyResolutionFailures(ModelLoadIssueReporter.java:281) at org.netbeans.gradle.project.model.issue.ModelLoadIssueReporter.lambda$reportDependencyResolutionFailures$3(ModelLoadIssueReporter.java:315) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) ... Exception occurs only once after IDE start and open project

makiam avatar Dec 24 '18 21:12 makiam

It seems it is a bug in the Spring Boot plugin used by the project. Probably, the Spring Boot plugin should be updated. That said, there is a bug in in this plugin as well which prevents to display the error. I'll fix it soon. For now, you can check your IDE log for the actual error's stack trace.

kelemen avatar Dec 28 '18 19:12 kelemen

I have fixed the issue both on the nb81 and the master branches.

kelemen avatar Dec 28 '18 19:12 kelemen