Skip to content

Crash when having a nil attributedTitle #18

@dusek

Description

@dusek

Hi,

after I upgraded from 6866d4d to ff72143, my app started crashing. I discovered that it is due to me setting attributedTitle of the startDownloadButton to nil, and this code thus initializing an NSAttributedString with a nil string.

I think the solution is quite easy - in [PKDownloadButton updateButton:title:], check if the passed title is nil. If yes, initialize attrTitle itself as nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions