mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug 536396 - Handle corrupt scanner info cache files
We were not handling JSON parse errors when loading the scanner info cache files which causes havoc at index time. Change-Id: I3a4ee6424134fe756543e4429e9e97b911cda99e
This commit is contained in:
parent
4b8274b9a1
commit
a1ed9cdb39
1 changed files with 1 additions and 1 deletions
|
@ -701,7 +701,7 @@ public abstract class CBuildConfiguration extends PlatformObject
|
|||
new IExtendedScannerInfoCreator());
|
||||
Gson gson = gsonBuilder.create();
|
||||
scannerInfoCache = gson.fromJson(reader, ScannerInfoCache.class);
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | JsonParseException e) {
|
||||
CCorePlugin.log(e);
|
||||
scannerInfoCache = new ScannerInfoCache();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue