Skip to content

Commit

Permalink
hotfix: include IllegalArgumentException in caught exceptions for ico…
Browse files Browse the repository at this point in the history
…n loading
  • Loading branch information
jrhizor committed May 25, 2021
1 parent 43b13eb commit d2c90de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public DestinationDefinitionRead updateDestinationDefinition(DestinationDefiniti
public static String loadIcon(String name) {
try {
return name == null ? null : MoreResources.readResource("icons/" + name);
} catch (IOException e) {
} catch (Exception e) {
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public SourceDefinitionRead updateSourceDefinition(SourceDefinitionUpdate source
public static String loadIcon(String name) {
try {
return name == null ? null : MoreResources.readResource("icons/" + name);
} catch (IOException e) {
} catch (Exception e) {
return null;
}
}
Expand Down

0 comments on commit d2c90de

Please sign in to comment.