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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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