diff --git a/src/noosfero-spb/software_communities/lib/software_info.rb b/src/noosfero-spb/software_communities/lib/software_info.rb index a9816f2..d1ea4f9 100644 --- a/src/noosfero-spb/software_communities/lib/software_info.rb +++ b/src/noosfero-spb/software_communities/lib/software_info.rb @@ -139,7 +139,7 @@ class SoftwareInfo < ActiveRecord::Base license = LicenseInfo.find_by_id self.license_info_id license_another = LicenseInfo.find_by_version("Another") - if license_another && license.id == license_another.id + if license_another && license && license.id == license_another.id LicenseInfo.new( :version => self.another_license_version, :link => self.another_license_link -- libgit2 0.21.2