1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

Avoid null-pointer exception with old-style third-party hardware folders.

This commit is contained in:
David A. Mellis 2012-10-10 09:13:57 -04:00
parent 2f8e766588
commit af932ef0ce

View File

@ -45,6 +45,7 @@ public class TargetPlatform {
name = _name; name = _name;
folder = _folder; folder = _folder;
boards = new HashMap<String, PreferencesMap>(); boards = new HashMap<String, PreferencesMap>();
boardsOrder = new ArrayList<String>();
programmers = new HashMap<String, PreferencesMap>(); programmers = new HashMap<String, PreferencesMap>();
preferences = new PreferencesMap(); preferences = new PreferencesMap();