1
0
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:
Federico Fissore
2015-05-20 16:32:27 +02:00
parent 0b4a4fb0b5
commit 026210564d
5 changed files with 28 additions and 13 deletions

View File

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