kelemen / netbeans-gradle-project

This project is a NetBeans plugin able to open Gradle based Java projects. The implementation is based on Geertjan Wielenga's plugin.
172 stars 57 forks source link

Fixed CompileOnSave for non-Gradle projects. #295

Closed 38leinaD closed 7 years ago

38leinaD commented 7 years ago

The CompileOnSave mechanism checked via getGradleProject-method if the project is a gradle-project. It is expected to return null and thus usGradleProject would return false. Unfortunately, IllegalStateException is thrown in this case. Switched to tryGetGradleProject-method that actually returns null.

kelemen commented 7 years ago

Thanks, but I didn't notice the PR before fixing it. The issue is fixed (exactly the same way).