Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
  • Loading branch information
J-N-K committed Dec 12, 2021
1 parent 4476288 commit 287e920
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public String getName() {
public void refreshSource() {
List<AddonEntryDTO> addons = new ArrayList<>();
// all addons from storage
installedAddonStorage.stream().map(e -> fromAddon(e.getKey(), gson.fromJson(e.getValue(), Addon.class)))
installedAddonStorage.stream()
.map(e -> fromAddon(e.getKey(), Objects.requireNonNull(gson.fromJson(e.getValue(), Addon.class))))
.forEach(addons::add);
// create lookup list to make sure installed addons take precedence
List<String> installedAddons = addons.stream().map(e -> e.id).collect(Collectors.toList());
Expand Down

0 comments on commit 287e920

Please sign in to comment.