Skip to content

Null Resource for Checkstyle Configuration (Potential Bug) #1335

@DeHopen

Description

@DeHopen
  • Problem: If checks.xml is not found in the classpath, getResourceAsStream returns null, which will cause a NullPointerException when passed to InputSource or later to ConfigurationLoader.loadConfiguration.

  • Consequence: The application will fail with a cryptic error if the resource is missing.

  • Fix: Check for null and throw a clear exception if the resource is not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions