File tree 1 file changed +9
-4
lines changed
arduino-core/src/cc/arduino/contributions/packages
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,17 @@ public void parseIndex() throws Exception {
144
144
index .fillCategories ();
145
145
}
146
146
147
- private List <File > get3rdPartyIndexFiles () throws MalformedURLException {
147
+ private List <File > get3rdPartyIndexFiles () {
148
148
List <File > indexFiles = new ArrayList <>();
149
149
for (String urlString : PreferencesData .getCollection (Constants .PREF_BOARDS_MANAGER_ADDITIONAL_URLS )) {
150
- final URL url = new URL (urlString );
151
- String filename = FilenameUtils .getName (url .getPath ());
152
- indexFiles .add (getIndexFile (filename ));
150
+ URL url ;
151
+ try {
152
+ url = new URL (urlString );
153
+ String filename = FilenameUtils .getName (url .getPath ());
154
+ indexFiles .add (getIndexFile (filename ));
155
+ } catch (MalformedURLException e ) {
156
+ System .err .println (format (tr ("Malformed Additional Board Manager URL '{0}': {1}" ), urlString , e .getMessage ()));
157
+ }
153
158
}
154
159
155
160
File [] testIndexFiles = preferencesFolder .listFiles ((dir , name ) -> {
You can’t perform that action at this time.
0 commit comments