{"action":"created","issue":{"url":"https://api.github.com/repos/google/simplecfg/issues/11","labels_url":"https://api.github.com/repos/google/simplecfg/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/google/simplecfg/issues/11/comments","events_url":"https://api.github.com/repos/google/simplecfg/issues/11/events","html_url":"https://github.com/google/simplecfg/issues/11","id":120836999,"number":11,"title":"Null check missed in expression with conditional operator","user":{"login":"emsod","id":9000726,"avatar_url":"https://avatars.githubusercontent.com/u/9000726?v=3","gravatar_id":"","url":"https://api.github.com/users/emsod","html_url":"https://github.com/emsod","followers_url":"https://api.github.com/users/emsod/followers","following_url":"https://api.github.com/users/emsod/following{/other_user}","gists_url":"https://api.github.com/users/emsod/gists{/gist_id}","starred_url":"https://api.github.com/users/emsod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emsod/subscriptions","organizations_url":"https://api.github.com/users/emsod/orgs","repos_url":"https://api.github.com/users/emsod/repos","events_url":"https://api.github.com/users/emsod/events{/privacy}","received_events_url":"https://api.github.com/users/emsod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/simplecfg/labels/analyzer:nulldereference","name":"analyzer:nulldereference","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T18:27:38Z","updated_at":"2015-12-22T10:13:27Z","closed_at":null,"body":"This code currently fails:\r\n\r\nint test(@Nullable String p) {\r\n  if (p == null || (true ? p.size() != 1 : false) {\r\n    return 1;\r\n  }\r\n  return 2;\r\n}\r\n\r\nBut the following works:\r\n\r\nint test(@Nullable String p) {\r\n  if (p == null || p.size() != 1) {\r\n    return 1;\r\n  }\r\n  return 2;\r\n}\r\n\r\nThe culprit appears to be the conditional operator."},"comment":{"url":"https://api.github.com/repos/google/simplecfg/issues/comments/166573860","html_url":"https://github.com/google/simplecfg/issues/11#issuecomment-166573860","issue_url":"https://api.github.com/repos/google/simplecfg/issues/11","id":166573860,"user":{"login":"llbit","id":2757386,"avatar_url":"https://avatars.githubusercontent.com/u/2757386?v=3","gravatar_id":"","url":"https://api.github.com/users/llbit","html_url":"https://github.com/llbit","followers_url":"https://api.github.com/users/llbit/followers","following_url":"https://api.github.com/users/llbit/following{/other_user}","gists_url":"https://api.github.com/users/llbit/gists{/gist_id}","starred_url":"https://api.github.com/users/llbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llbit/subscriptions","organizations_url":"https://api.github.com/users/llbit/orgs","repos_url":"https://api.github.com/users/llbit/repos","events_url":"https://api.github.com/users/llbit/events{/privacy}","received_events_url":"https://api.github.com/users/llbit/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T10:13:27Z","updated_at":"2015-12-22T10:13:27Z","body":"I made a mistake in my test case - I forgot to import `javax.annotation.Nullable`. Now I am able to reproduce the false positive."}}