ECS: prevent NPE when missing a library

This commit is contained in:
Jakub Valtar
2016-03-27 21:46:50 +02:00
parent 761a9aba86
commit 2a27edabf1

View File

@@ -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
}