Skip to content

Potential NPE in AnnotatedTerm.java #123

@ErrReporter

Description

@ErrReporter

Hello,
Our static analyses found a following potential NPE:

  1. Return null to caller

  2. Return the return value of function term to caller

  3. Function toTerm executes and stores the return value to res (res can be null)

  4. res is used as the 2nd parameter in function annotatedTerm (res can be null)

  5. sub is used as the 2nd parameter in function hashAnnotations (sub can be null)

    final int hash = AnnotatedTerm.hashAnnotations(annots, sub);

  6. subTerm is passed as the this pointer to function hashCode (subTerm can be null)

    HashUtils.hashJenkins(subTerm.hashCode(), (Object[])annots);

Commit: 828ec76

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions