{"action":"created","issue":{"url":"https://api.github.com/repos/yegor256/cactoos/issues/551","repository_url":"https://api.github.com/repos/yegor256/cactoos","labels_url":"https://api.github.com/repos/yegor256/cactoos/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/cactoos/issues/551/comments","events_url":"https://api.github.com/repos/yegor256/cactoos/issues/551/events","html_url":"https://github.com/yegor256/cactoos/issues/551","id":287873079,"number":551,"title":"FuncOf returning null on apply","user":{"login":"neonailol","id":440768,"avatar_url":"https://avatars3.githubusercontent.com/u/440768?v=4","gravatar_id":"","url":"https://api.github.com/users/neonailol","html_url":"https://github.com/neonailol","followers_url":"https://api.github.com/users/neonailol/followers","following_url":"https://api.github.com/users/neonailol/following{/other_user}","gists_url":"https://api.github.com/users/neonailol/gists{/gist_id}","starred_url":"https://api.github.com/users/neonailol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonailol/subscriptions","organizations_url":"https://api.github.com/users/neonailol/orgs","repos_url":"https://api.github.com/users/neonailol/repos","events_url":"https://api.github.com/users/neonailol/events{/privacy}","received_events_url":"https://api.github.com/users/neonailol/received_events","type":"User","site_admin":false},"labels":[{"id":611498887,"url":"https://api.github.com/repos/yegor256/cactoos/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-01-11T18:04:14Z","updated_at":"2018-05-14T16:18:20Z","closed_at":"2018-05-14T09:46:09Z","author_association":"CONTRIBUTOR","body":"According to readme this library advertised and null-free\r\n\r\nhttps://github.com/yegor256/cactoos/blob/8586d83a7bb4a5cd813b0b9d22f0ee6419a94d85/README.md#L35\r\n\r\nBut in `FuncOf` there is 2 constructors, that returns null on calling `apply` of retuned `Func`\r\nIs this really nececary? Maybe they do not belong in there and should be moved to smth like `FuncNlsOf` or changed to better abstractions or simple removed\r\n\r\nhttps://github.com/yegor256/cactoos/blob/8586d83a7bb4a5cd813b0b9d22f0ee6419a94d85/src/main/java/org/cactoos/func/FuncOf.java#L76-L78\r\n\r\nhttps://github.com/yegor256/cactoos/blob/8586d83a7bb4a5cd813b0b9d22f0ee6419a94d85/src/main/java/org/cactoos/func/FuncOf.java#L68-L70\r\n\r\nAlso tests say that `null` is expected behaviour there\r\n\r\nhttps://github.com/yegor256/cactoos/blob/8586d83a7bb4a5cd813b0b9d22f0ee6419a94d85/src/test/java/org/cactoos/func/FuncOfTest.java#L53-L64\r\n\r\nhttps://github.com/yegor256/cactoos/blob/8586d83a7bb4a5cd813b0b9d22f0ee6419a94d85/src/test/java/org/cactoos/func/FuncOfTest.java#L66-L75\r\n\r\nAlso i'm seeing same behaviour in constructors of `CallableOf` and `BiFuncOf`"},"comment":{"url":"https://api.github.com/repos/yegor256/cactoos/issues/comments/388875840","html_url":"https://github.com/yegor256/cactoos/issues/551#issuecomment-388875840","issue_url":"https://api.github.com/repos/yegor256/cactoos/issues/551","id":388875840,"user":{"login":"elenavolokhova","id":9750110,"avatar_url":"https://avatars1.githubusercontent.com/u/9750110?v=4","gravatar_id":"","url":"https://api.github.com/users/elenavolokhova","html_url":"https://github.com/elenavolokhova","followers_url":"https://api.github.com/users/elenavolokhova/followers","following_url":"https://api.github.com/users/elenavolokhova/following{/other_user}","gists_url":"https://api.github.com/users/elenavolokhova/gists{/gist_id}","starred_url":"https://api.github.com/users/elenavolokhova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elenavolokhova/subscriptions","organizations_url":"https://api.github.com/users/elenavolokhova/orgs","repos_url":"https://api.github.com/users/elenavolokhova/repos","events_url":"https://api.github.com/users/elenavolokhova/events{/privacy}","received_events_url":"https://api.github.com/users/elenavolokhova/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T16:18:20Z","updated_at":"2018-05-14T16:18:20Z","author_association":"NONE","body":"@SharplEr According to our Policy:\r\n>Some of ticket messages must mention all pull requests where the problem was actually fixed;\r\n\r\nThere is no direct message with the link to corresponding PR.\r\nPlease, confirm that you will follow this rule in future."}}
{"actor":{"display_login":"elenavolokhova"}}