{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1992","repository_url":"https://api.github.com/repos/OpenImageIO/oiio","labels_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1992/labels{/name}","comments_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1992/comments","events_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1992/events","html_url":"https://github.com/OpenImageIO/oiio/issues/1992","id":347520906,"node_id":"MDU6SXNzdWUzNDc1MjA5MDY=","number":1992,"title":"Remove unnecessary null pointer checks","user":{"login":"elfring","id":660477,"node_id":"MDQ6VXNlcjY2MDQ3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/660477?v=4","gravatar_id":"","url":"https://api.github.com/users/elfring","html_url":"https://github.com/elfring","followers_url":"https://api.github.com/users/elfring/followers","following_url":"https://api.github.com/users/elfring/following{/other_user}","gists_url":"https://api.github.com/users/elfring/gists{/gist_id}","starred_url":"https://api.github.com/users/elfring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfring/subscriptions","organizations_url":"https://api.github.com/users/elfring/orgs","repos_url":"https://api.github.com/users/elfring/repos","events_url":"https://api.github.com/users/elfring/events{/privacy}","received_events_url":"https://api.github.com/users/elfring/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-03T20:06:38Z","updated_at":"2018-08-03T20:06:38Z","closed_at":null,"author_association":"NONE","body":"[An extra null pointer check is not needed in functions](https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null \"Do I need to check for null before delete p?\") like the following.\r\n- [cineon::Codec](https://github.com/OpenImageIO/oiio/blob/fa18406742e8615eeebd1d4804ce6e7255b8232e/src/cineon.imageio/libcineon/Codec.cpp#L48 \"Destructor for cineon::Codec\")\r\n- [cineon::Writer::WriteElement](https://github.com/OpenImageIO/oiio/blob/fa18406742e8615eeebd1d4804ce6e7255b8232e/src/cineon.imageio/libcineon/Writer.cpp#L296 \"cineon::Writer::WriteElement function\")\r\n- [dpx::RunLengthEncoding::Reset](https://github.com/OpenImageIO/oiio/blob/fa18406742e8615eeebd1d4804ce6e7255b8232e/src/dpx.imageio/libdpx/RunLengthEncoding.cpp#L60 \"dpx::RunLengthEncoding::Reset function\")"}}
{"actor":{"display_login":"elfring"}}