{"action":"closed","issue":{"url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/155","labels_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/155/comments","events_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/155/events","html_url":"https://github.com/duke-libraries/ddr-public/issues/155","id":105823601,"number":155,"title":"Account for case where struct_map is nil","user":{"login":"corylown","id":458247,"avatar_url":"https://avatars.githubusercontent.com/u/458247?v=3","gravatar_id":"","url":"https://api.github.com/users/corylown","html_url":"https://github.com/corylown","followers_url":"https://api.github.com/users/corylown/followers","following_url":"https://api.github.com/users/corylown/following{/other_user}","gists_url":"https://api.github.com/users/corylown/gists{/gist_id}","starred_url":"https://api.github.com/users/corylown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corylown/subscriptions","organizations_url":"https://api.github.com/users/corylown/orgs","repos_url":"https://api.github.com/users/corylown/repos","events_url":"https://api.github.com/users/corylown/events{/privacy}","received_events_url":"https://api.github.com/users/corylown/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T14:38:24Z","updated_at":"2015-09-10T16:43:17Z","closed_at":"2015-09-10T16:43:17Z","body":"@seanaery On repo-dev, for whatever reason, the blake collection does not have any struct_map data associated with it. When the _display_multi_image.html.erb partial attempts to use some of the helpers in application_helper.rb I'm seeing an  \"ActionView::Template::Error (undefined method `each' for nil:NilClass)\" error in the logs. I think this is because sorted_pids returns nil if struct_map doesn't exist for the document, but the multi_image_sorted_paths method does not account for sorted_pids being nil.\r\n\r\nRelevant lines in application_helper.rb\r\n\r\nhttps://github.com/duke-libraries/ddr-public/blob/develop/app/helpers/application_helper.rb#L111-L139"}}