{"action":"closed","issue":{"url":"https://api.github.com/repos/younatics/ExpandableCell/issues/25","repository_url":"https://api.github.com/repos/younatics/ExpandableCell","labels_url":"https://api.github.com/repos/younatics/ExpandableCell/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/younatics/ExpandableCell/issues/25/comments","events_url":"https://api.github.com/repos/younatics/ExpandableCell/issues/25/events","html_url":"https://github.com/younatics/ExpandableCell/issues/25","id":275252678,"number":25,"title":"When I expand the cell then it crashes if one cell is already expended in the following method.","user":{"login":"Pinturaj","id":9567375,"avatar_url":"https://avatars0.githubusercontent.com/u/9567375?v=4","gravatar_id":"","url":"https://api.github.com/users/Pinturaj","html_url":"https://github.com/Pinturaj","followers_url":"https://api.github.com/users/Pinturaj/followers","following_url":"https://api.github.com/users/Pinturaj/following{/other_user}","gists_url":"https://api.github.com/users/Pinturaj/gists{/gist_id}","starred_url":"https://api.github.com/users/Pinturaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pinturaj/subscriptions","organizations_url":"https://api.github.com/users/Pinturaj/orgs","repos_url":"https://api.github.com/users/Pinturaj/repos","events_url":"https://api.github.com/users/Pinturaj/events{/privacy}","received_events_url":"https://api.github.com/users/Pinturaj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-20T06:48:49Z","updated_at":"2017-12-18T07:39:43Z","closed_at":"2017-12-18T07:39:42Z","author_association":"NONE","body":"Some time it crashes because  filteredExpandedDatas having no object at that time.\r\n\r\nfunc indexPathsWhere(indexPath: IndexPath) -> [IndexPath] {\r\n        let filteredExpandedDatas = expandableDatas.filter({ (expandedData: ExpandableData) -> Bool in\r\n            return (expandedData.indexPath == indexPath)\r\n        })\r\n        if filteredExpandedDatas.count > 1 {\r\n            fatalError(\"Something Wrong\")\r\n        }\r\n        return filteredExpandedDatas[0].expandedIndexPaths\r\n    }"}}
{"actor":{"display_login":"younatics"}}