File tree 1 file changed +9
-7
lines changed
io.sloeber.core/src/io/sloeber/core/api
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -93,14 +93,16 @@ public static void InstallDefaultLibraries(IProgressMonitor monitor) {
93
93
94
94
for (String libraryName : Defaults .DEFAULT_INSTALLED_LIBRARIES ) {
95
95
ArduinoLibrary toInstalLib = libindex .getLibrary (libraryName );
96
- ArduinoLibraryVersion toInstalLibVersion = toInstalLib .getNewestVersion ();
97
- ArduinoLibraryVersion instaledLibVersion = toInstalLib .getInstalledVersion ();
98
- if (toInstalLibVersion != null ) {
99
- if (toInstalLibVersion != instaledLibVersion ) {
100
- if (instaledLibVersion != null ) {
101
- unInstall (instaledLibVersion , monitor );
96
+ if (toInstalLib != null ) {
97
+ ArduinoLibraryVersion toInstalLibVersion = toInstalLib .getNewestVersion ();
98
+ ArduinoLibraryVersion instaledLibVersion = toInstalLib .getInstalledVersion ();
99
+ if (toInstalLibVersion != null ) {
100
+ if (toInstalLibVersion != instaledLibVersion ) {
101
+ if (instaledLibVersion != null ) {
102
+ unInstall (instaledLibVersion , monitor );
103
+ }
104
+ install (toInstalLibVersion , monitor );
102
105
}
103
- install (toInstalLibVersion , monitor );
104
106
}
105
107
}
106
108
}
You can’t perform that action at this time.
0 commit comments