{"action":"closed","issue":{"url":"https://api.github.com/repos/spekframework/spek/issues/217","repository_url":"https://api.github.com/repos/spekframework/spek","labels_url":"https://api.github.com/repos/spekframework/spek/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/spekframework/spek/issues/217/comments","events_url":"https://api.github.com/repos/spekframework/spek/issues/217/events","html_url":"https://github.com/spekframework/spek/issues/217","id":234227296,"node_id":"MDU6SXNzdWUyMzQyMjcyOTY=","number":217,"title":"Memoized does not allow null values — runtime crash.","user":{"login":"artem-zinnatullin","id":967132,"node_id":"MDQ6VXNlcjk2NzEzMg==","avatar_url":"https://avatars0.githubusercontent.com/u/967132?v=4","gravatar_id":"","url":"https://api.github.com/users/artem-zinnatullin","html_url":"https://github.com/artem-zinnatullin","followers_url":"https://api.github.com/users/artem-zinnatullin/followers","following_url":"https://api.github.com/users/artem-zinnatullin/following{/other_user}","gists_url":"https://api.github.com/users/artem-zinnatullin/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-zinnatullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-zinnatullin/subscriptions","organizations_url":"https://api.github.com/users/artem-zinnatullin/orgs","repos_url":"https://api.github.com/users/artem-zinnatullin/repos","events_url":"https://api.github.com/users/artem-zinnatullin/events{/privacy}","received_events_url":"https://api.github.com/users/artem-zinnatullin/received_events","type":"User","site_admin":false},"labels":[{"id":18456619,"node_id":"MDU6TGFiZWwxODQ1NjYxOQ==","url":"https://api.github.com/repos/spekframework/spek/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"artem-zinnatullin","id":967132,"node_id":"MDQ6VXNlcjk2NzEzMg==","avatar_url":"https://avatars0.githubusercontent.com/u/967132?v=4","gravatar_id":"","url":"https://api.github.com/users/artem-zinnatullin","html_url":"https://github.com/artem-zinnatullin","followers_url":"https://api.github.com/users/artem-zinnatullin/followers","following_url":"https://api.github.com/users/artem-zinnatullin/following{/other_user}","gists_url":"https://api.github.com/users/artem-zinnatullin/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-zinnatullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-zinnatullin/subscriptions","organizations_url":"https://api.github.com/users/artem-zinnatullin/orgs","repos_url":"https://api.github.com/users/artem-zinnatullin/repos","events_url":"https://api.github.com/users/artem-zinnatullin/events{/privacy}","received_events_url":"https://api.github.com/users/artem-zinnatullin/received_events","type":"User","site_admin":false},"assignees":[{"login":"artem-zinnatullin","id":967132,"node_id":"MDQ6VXNlcjk2NzEzMg==","avatar_url":"https://avatars0.githubusercontent.com/u/967132?v=4","gravatar_id":"","url":"https://api.github.com/users/artem-zinnatullin","html_url":"https://github.com/artem-zinnatullin","followers_url":"https://api.github.com/users/artem-zinnatullin/followers","following_url":"https://api.github.com/users/artem-zinnatullin/following{/other_user}","gists_url":"https://api.github.com/users/artem-zinnatullin/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-zinnatullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-zinnatullin/subscriptions","organizations_url":"https://api.github.com/users/artem-zinnatullin/orgs","repos_url":"https://api.github.com/users/artem-zinnatullin/repos","events_url":"https://api.github.com/users/artem-zinnatullin/events{/privacy}","received_events_url":"https://api.github.com/users/artem-zinnatullin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/spekframework/spek/milestones/3","html_url":"https://github.com/spekframework/spek/milestone/3","labels_url":"https://api.github.com/repos/spekframework/spek/milestones/3/labels","id":2782851,"node_id":"MDk6TWlsZXN0b25lMjc4Mjg1MQ==","number":3,"title":"2.0.0-alpha.1","description":"Next major release for Spek.\r\n\r\nMain goals:\r\n\r\n- Prepare project for multiplatform runtime support (JVM, JS, Native)\r\n- Restructure API and modules\r\n- Rebuild test engine and abstract it from JUnit5\r\n- Add new `Path` abstraction for better test-subtree execution (related to IntelliJ Plugin)\r\n- Provide official Gradle and Android Gradle Plugin integrations","creator":{"login":"raniejade","id":1041919,"node_id":"MDQ6VXNlcjEwNDE5MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1041919?v=4","gravatar_id":"","url":"https://api.github.com/users/raniejade","html_url":"https://github.com/raniejade","followers_url":"https://api.github.com/users/raniejade/followers","following_url":"https://api.github.com/users/raniejade/following{/other_user}","gists_url":"https://api.github.com/users/raniejade/gists{/gist_id}","starred_url":"https://api.github.com/users/raniejade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raniejade/subscriptions","organizations_url":"https://api.github.com/users/raniejade/orgs","repos_url":"https://api.github.com/users/raniejade/repos","events_url":"https://api.github.com/users/raniejade/events{/privacy}","received_events_url":"https://api.github.com/users/raniejade/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":49,"state":"open","created_at":"2017-09-21T12:55:22Z","updated_at":"2018-07-07T11:57:13Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-06-07T14:23:43Z","updated_at":"2018-07-07T11:57:13Z","closed_at":"2018-07-07T11:57:13Z","author_association":"COLLABORATOR","body":"```kotlin\r\nby memoized { func() }\r\n```\r\n\r\nIf `func()` returns `null`, Spek crashes with:\r\n\r\n```\r\nkotlin.KotlinNullPointerException\r\n\tat org.jetbrains.spek.engine.lifecycle.LifecycleAwareAdapter.invoke(LifecycleAwareAdapter.kt:23)\r\n\tat org.jetbrains.spek.engine.lifecycle.LifecycleAwareAdapter.getValue(LifecycleAwareAdapter.kt:17)\r\n```\r\n\r\nBecause `null` used internally as not initialized state of memoized.\r\n\r\nFaced this in our test suite, I'll work on fix."}}
{"actor":{"display_login":"raniejade"}}