{"action":"created","issue":{"url":"https://api.github.com/repos/JabRef/jabref/issues/1611","repository_url":"https://api.github.com/repos/JabRef/jabref","labels_url":"https://api.github.com/repos/JabRef/jabref/issues/1611/labels{/name}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/1611/comments","events_url":"https://api.github.com/repos/JabRef/jabref/issues/1611/events","html_url":"https://github.com/JabRef/jabref/pull/1611","id":166843681,"number":1611,"title":"Fix OutOfBoundsException when importing multiple entries in medline format","user":{"login":"tschechlovdev","id":15339876,"avatar_url":"https://avatars.githubusercontent.com/u/15339876?v=3","gravatar_id":"","url":"https://api.github.com/users/tschechlovdev","html_url":"https://github.com/tschechlovdev","followers_url":"https://api.github.com/users/tschechlovdev/followers","following_url":"https://api.github.com/users/tschechlovdev/following{/other_user}","gists_url":"https://api.github.com/users/tschechlovdev/gists{/gist_id}","starred_url":"https://api.github.com/users/tschechlovdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschechlovdev/subscriptions","organizations_url":"https://api.github.com/users/tschechlovdev/orgs","repos_url":"https://api.github.com/users/tschechlovdev/repos","events_url":"https://api.github.com/users/tschechlovdev/events{/privacy}","received_events_url":"https://api.github.com/users/tschechlovdev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JabRef/jabref/labels/ready-for-review","name":"ready-for-review","color":"e11d21"},{"url":"https://api.github.com/repos/JabRef/jabref/labels/stupro","name":"stupro","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-21T15:09:43Z","updated_at":"2016-08-03T07:47:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/1611","html_url":"https://github.com/JabRef/jabref/pull/1611","diff_url":"https://github.com/JabRef/jabref/pull/1611.diff","patch_url":"https://github.com/JabRef/jabref/pull/1611.patch"},"body":"@zellerdev found out a bug when importing more than one entry in the medline format into JabRef. \r\nJabRef version\r\nJabRef 3.5\r\nwindows 8.1 6.3 amd64 \r\nJava 1.8.0_25\r\n\r\nSteps to reproduce:\r\n1. Select more than entry from [here] (http://www.ncbi.nlm.nih.gov/pubmed) .\r\n2. Select \"Send to File\" and then choose \"Medline\" Format.\r\n3. Open Jabref and select \"Import into new database\".\r\n4.  I get an IndexOutOfBoundException shown on the console and no entries are imported.\r\n\r\nAlternatively use the testfiles I added in this PR.\r\n\r\nQuick fix: Add an if clause around the substring method, that causes the Exception.\r\n\r\n- [x] Tests created for changes\r\n"},"comment":{"url":"https://api.github.com/repos/JabRef/jabref/issues/comments/237167321","html_url":"https://github.com/JabRef/jabref/pull/1611#issuecomment-237167321","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/1611","id":237167321,"user":{"login":"stefan-kolb","id":2141507,"avatar_url":"https://avatars.githubusercontent.com/u/2141507?v=3","gravatar_id":"","url":"https://api.github.com/users/stefan-kolb","html_url":"https://github.com/stefan-kolb","followers_url":"https://api.github.com/users/stefan-kolb/followers","following_url":"https://api.github.com/users/stefan-kolb/following{/other_user}","gists_url":"https://api.github.com/users/stefan-kolb/gists{/gist_id}","starred_url":"https://api.github.com/users/stefan-kolb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefan-kolb/subscriptions","organizations_url":"https://api.github.com/users/stefan-kolb/orgs","repos_url":"https://api.github.com/users/stefan-kolb/repos","events_url":"https://api.github.com/users/stefan-kolb/events{/privacy}","received_events_url":"https://api.github.com/users/stefan-kolb/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T07:47:44Z","updated_at":"2016-08-03T07:47:44Z","body":"Maybe fix the two Codacy warnings (https://www.codacy.com/app/simonharrer/jabref/pullRequest?prid=289709) and add a key to the @misc entries. Otherwise im :+1: We need a second review from a @JabRef/developers tho."}}
{"actor":{"display_login":"stefan-kolb"}}