starting 72.. shows an error message when an import is missing.

This commit is contained in:
benfry
2004-10-11 18:45:05 +00:00
parent bc794a9fe7
commit 8f1820b3a5
5 changed files with 72 additions and 61 deletions

View File

@@ -1180,8 +1180,12 @@ public class PdeSketch {
//System.out.println("found package " + entry);
File libFolder = (File) PdeSketchbook.importToLibraryTable.get(entry);
//System.out.println(" found lib folder " + libFolder);
importedLibraries.add(libFolder);
if (libFolder == null) {
throw new PdeException("Could not find library for " + entry);
//return null;
}
importedLibraries.add(libFolder);
libraryPath += File.pathSeparator + libFolder.getAbsolutePath();
}