mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-19 09:42:11 +03:00
Several File.list() calls missed check for null return value. Fixed
This commit is contained in:
@ -95,6 +95,9 @@ public class SketchData {
|
||||
|
||||
// get list of files in the sketch folder
|
||||
String list[] = folder.list();
|
||||
if (list == null) {
|
||||
throw new IOException("Unable to list files from " + folder);
|
||||
}
|
||||
|
||||
// reset these because load() may be called after an
|
||||
// external editor event. (fix for 0099)
|
||||
|
Reference in New Issue
Block a user