Commit decd09a6 authored by Marcelo Fabri's avatar Marcelo Fabri

[Acknowledgements] Prevent crash when license type is nil

parent e39222e6
......@@ -33,12 +33,14 @@ module Pod
def hash_for_spec(spec)
if (license = license_text(spec))
{
hash = {
:Type => 'PSGroupSpecifier',
:Title => sanitize_encoding(spec.name),
:FooterText => sanitize_encoding(license),
:License => sanitize_encoding(spec.license[:type]),
}
hash[:License] = sanitize_encoding(spec.license[:type]) if spec.license[:type]
hash
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment