Skip to content

Commit

Permalink
Do not crash when a package does not belong to an addon
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 27, 2020
1 parent 5f79ea9 commit 44ca353
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/registration/widgets/remote_packages_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def format_items(items)
#
# @param item [RemotePackage]
def columns_for_item(item)
[package_status(item), item.name, item.addon.name]
[
package_status(item),
item.name,
item.addon ? item.addon.name : ""
]
end

# Package status indicator
Expand Down

0 comments on commit 44ca353

Please sign in to comment.