close
The Wayback Machine - https://web.archive.org/web/20260108090655/https://github.com/github/codeql/issues/4355
Skip to content

LGTM.com - false positive: Java variable cant be null after !Strings.isNullOrEmpty check #4355

@XN137

Description

@XN137

Description of the false positive

if (!Strings.isNullOrEmpty(ks) && !Strings.isNullOrEmpty(cf))
{
    String type = cf.contains(".") ? "IndexTable" : "Table";
    ...
}

inside the block cf can not be null, due to the if condition above.

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/apache/cassandra/snapshot/432180c435acbf284b835addb738df1510da5909/files/src/java/org/apache/cassandra/tools/NodeProbe.java#xa4c110c51a74e3d8:1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions