diff --git a/java/src/processing/mode/java/pdex/ErrorCheckerService.java b/java/src/processing/mode/java/pdex/ErrorCheckerService.java index e1bb97815..cb207c076 100644 --- a/java/src/processing/mode/java/pdex/ErrorCheckerService.java +++ b/java/src/processing/mode/java/pdex/ErrorCheckerService.java @@ -699,7 +699,9 @@ public class ErrorCheckerService { // Try to get the library classpath and add it to the list try { Library library = mode.getLibrary(entry); - classPath.append(library.getClassPath()); + if (library != null) { + classPath.append(library.getClassPath()); + } } catch (SketchException e) { // More libraries competing, ignore }