Skip to content

StaleResourceScanner: NPE when SourceMapping.getTargetFiles() returns null #87

Description

@elharo

Bug #5

StaleResourceScanner.java line 94

mapping.getTargetFiles(targetDir, path) at line 94 is assigned to targetFiles and then iterated at line 99 with a for-each loop. If a SourceMapping implementation returns null (the interface contract does not explicitly forbid it), this will throw a NullPointerException.

Fix: add a null check before iterating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions