1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Do not fail if library_index.json can't be parsed

Fix #7937
This commit is contained in:
Cristian Maglie 2018-09-03 15:17:47 +02:00 committed by Cristian Maglie
parent 3dfe85916c
commit 6ed7934ee1

View File

@ -73,11 +73,14 @@ public class LibrariesIndexer {
}
public void parseIndex() throws IOException {
index = new EmptyLibrariesIndex(); // Fallback
if (!indexFile.exists()) {
index = new EmptyLibrariesIndex();
} else {
parseIndex(indexFile);
return;
}
parseIndex(indexFile);
// TODO: resolve libraries inner references
}