tweaks for bugs casey is findin

This commit is contained in:
benfry
2004-07-07 20:43:20 +00:00
parent 06afce9ba8
commit a09e55e2c9
3 changed files with 11 additions and 0 deletions

View File

@@ -332,6 +332,9 @@ public class PdeSketchbook {
if (!folder.isDirectory()) return false;
String list[] = folder.list();
// if a bad folder or something like that, this might come back null
if (list == null) return false;
// alphabetize list, since it's not always alpha order
// use cheapie bubble-style sort which should be fine
// since not a tone of files, and things will mostly be sorted