File tree 2 files changed +4
-2
lines changed
cc/arduino/contributions/packages
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public void syncWithFilesystem() throws IOException {
215
215
}
216
216
217
217
private void syncBuiltInHardware () throws IOException {
218
- if (index == null ) {
218
+ if (index == null || builtInHardwareFolder == null ) {
219
219
return ;
220
220
}
221
221
for (File folder : builtInHardwareFolder .listFiles (ONLY_DIRS )) {
Original file line number Diff line number Diff line change @@ -676,7 +676,9 @@ static public void onBoardOrPortChange() {
676
676
// Libraries located in the latest folders on the list can override
677
677
// other libraries with the same name.
678
678
librariesIndexer .setLibrariesFolders (librariesFolders );
679
- librariesIndexer .setArchitecturePriority (getTargetPlatform ().getId ());
679
+ if (getTargetPlatform () != null ) {
680
+ librariesIndexer .setArchitecturePriority (getTargetPlatform ().getId ());
681
+ }
680
682
librariesIndexer .rescanLibraries ();
681
683
682
684
populateImportToLibraryTable ();
You can’t perform that action at this time.
0 commit comments