|
|
@ -403,8 +403,8 @@ let dereference_string deref_str value_str access_opt loc =
|
|
|
|
let problem_str =
|
|
|
|
let problem_str =
|
|
|
|
match Tags.get !tags Tags.nullable_src with
|
|
|
|
match Tags.get !tags Tags.nullable_src with
|
|
|
|
| Some nullable_src ->
|
|
|
|
| Some nullable_src ->
|
|
|
|
if nullable_src = value_str then "is annotated with @Nullable and is dereferenced"
|
|
|
|
if nullable_src = value_str then "is annotated with @Nullable and is dereferenced without a null check"
|
|
|
|
else "may hold @Nullable-annotated object " ^ nullable_src ^ " and is dereferenced"
|
|
|
|
else "is indirectly marked @Nullable (source: " ^ nullable_src ^ ") and is dereferenced without a null check"
|
|
|
|
| None -> deref_str.problem_str in
|
|
|
|
| None -> deref_str.problem_str in
|
|
|
|
[(problem_str ^ " " ^ at_line tags loc)] in
|
|
|
|
[(problem_str ^ " " ^ at_line tags loc)] in
|
|
|
|
value_desc:: access_desc @ problem_desc, None, !tags
|
|
|
|
value_desc:: access_desc @ problem_desc, None, !tags
|
|
|
|