Skip to content

Commit

Permalink
Avoid NPE for non-existing projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Aug 11, 2024
1 parent 88b264d commit a8ee907
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void configureJavacContext(Context context, JavacConfig compilerCo
private static void configureJavacContext(Context context, Map<String, String> compilerOptions,
IJavaProject javaProject, JavacConfig compilerConfig, File output) {
IClasspathEntry[] classpath = new IClasspathEntry[0];
if (javaProject != null) {
if (javaProject != null && javaProject.getProject() != null) {
try {
classpath = javaProject.getRawClasspath();
} catch (JavaModelException ex) {
Expand Down

0 comments on commit a8ee907

Please sign in to comment.