Commit d137d2ab054cae92d15c259f7e41905fe242eff2
Committed by
Gabriela Navarro
1 parent
74295e2e
Exists in
master
and in
5 other branches
Don't add nil community of software in software search
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/ext/search_controller.rb
... | ... | @@ -85,7 +85,7 @@ class SearchController |
85 | 85 | filtered_community_list = [] |
86 | 86 | software_list.each do |software| |
87 | 87 | if @include_non_public || software.public_software? |
88 | - filtered_community_list << software.community | |
88 | + filtered_community_list << software.community unless software.community.nil? | |
89 | 89 | end |
90 | 90 | end |
91 | 91 | filtered_community_list | ... | ... |