{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1648","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1648/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1648/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1648/events","html_url":"https://github.com/realm/realm-java/pull/1648","id":112951233,"number":1648,"title":"fix possible null assignment to Realm.columnIndices.","user":{"login":"zaki50","id":406660,"avatar_url":"https://avatars.githubusercontent.com/u/406660?v=3","gravatar_id":"","url":"https://api.github.com/users/zaki50","html_url":"https://github.com/zaki50","followers_url":"https://api.github.com/users/zaki50/followers","following_url":"https://api.github.com/users/zaki50/following{/other_user}","gists_url":"https://api.github.com/users/zaki50/gists{/gist_id}","starred_url":"https://api.github.com/users/zaki50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaki50/subscriptions","organizations_url":"https://api.github.com/users/zaki50/orgs","repos_url":"https://api.github.com/users/zaki50/repos","events_url":"https://api.github.com/users/zaki50/events{/privacy}","received_events_url":"https://api.github.com/users/zaki50/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Review","name":"Review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-23T04:56:03Z","updated_at":"2015-10-23T05:53:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realm/realm-java/pulls/1648","html_url":"https://github.com/realm/realm-java/pull/1648","diff_url":"https://github.com/realm/realm-java/pull/1648.diff","patch_url":"https://github.com/realm/realm-java/pull/1648.patch"},"body":"Problem:\r\n  `Realm#lastLocalInstanceClosed()` which is called by `Realm#close()` can remove entries from `validatedRealmFiles` while other thread is executing `Realm#createAndValidate()`.\r\n  This might lead to `null` assignment to `Realm.columnIndices`.\r\n\r\nSolution:\r\n  Modified to deal with `validatedRealmFiles` in synchronized block of `Realm.class`.\r\n\r\nthis PR fixes #1646"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/150481776","html_url":"https://github.com/realm/realm-java/pull/1648#issuecomment-150481776","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1648","id":150481776,"user":{"login":"dalinaum","id":145585,"avatar_url":"https://avatars.githubusercontent.com/u/145585?v=3","gravatar_id":"","url":"https://api.github.com/users/dalinaum","html_url":"https://github.com/dalinaum","followers_url":"https://api.github.com/users/dalinaum/followers","following_url":"https://api.github.com/users/dalinaum/following{/other_user}","gists_url":"https://api.github.com/users/dalinaum/gists{/gist_id}","starred_url":"https://api.github.com/users/dalinaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalinaum/subscriptions","organizations_url":"https://api.github.com/users/dalinaum/orgs","repos_url":"https://api.github.com/users/dalinaum/repos","events_url":"https://api.github.com/users/dalinaum/events{/privacy}","received_events_url":"https://api.github.com/users/dalinaum/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T05:53:22Z","updated_at":"2015-10-23T05:53:22Z","body":":+1: "}}