mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Fix mode core library being null
This commit is contained in:
@@ -568,9 +568,18 @@ public class ErrorCheckerService {
|
||||
}
|
||||
|
||||
// Mode class path
|
||||
String coreClassPath = mode.getCoreLibrary().getClassPath();
|
||||
if (coreClassPath != null) {
|
||||
classPath.append(File.pathSeparator).append(coreClassPath);
|
||||
if (neededImports == null) {
|
||||
String searchClassPath = mode.getSearchPath();
|
||||
if (searchClassPath != null) {
|
||||
classPath.append(File.pathSeparator).append(searchClassPath);
|
||||
}
|
||||
} else {
|
||||
Library coreLibrary = mode.getCoreLibrary();
|
||||
String coreClassPath = coreLibrary != null ?
|
||||
coreLibrary.getClassPath() : mode.getSearchPath();
|
||||
if (coreClassPath != null) {
|
||||
classPath.append(File.pathSeparator).append(coreClassPath);
|
||||
}
|
||||
}
|
||||
|
||||
// Core libraries
|
||||
|
||||
Reference in New Issue
Block a user