Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.
This repository was archived by the owner on May 29, 2024. It is now read-only.

Dirty NPE in NativeGitBoosterCatalogPathProvider.createBoosterContentPath #46

@ia3andy

Description

@ia3andy

the code in NativeGitBoosterCatalogPathProvider.createBoosterContentPath can be dangerous
booster.getGitRepo() and booster.getGitRef() are both @Nullable and can lead to a dirty ProcessBuilder NPE.

Caused by: java.lang.NullPointerException
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
    at io.fabric8.launcher.booster.catalog.spi.NativeGitBoosterCatalogPathProvider.createBoosterContentPath(NativeGitBoosterCatalogPathProvider.java:89)
    at io.fabric8.launcher.booster.catalog.AbstractBoosterCatalogService.lambda$fetchBoosterContent$4(AbstractBoosterCatalogService.java:194)
    ... 9 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions