Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcli sc-sast scan start: NullPointerException if no options/parameters provided #232

Closed
rsenden opened this issue Jan 17, 2023 · 0 comments

Comments

@rsenden
Copy link
Contributor

rsenden commented Jan 17, 2023

Running fcli sc-sast scan start without any options or parameters results in a NullPointerException:

java.lang.NullPointerException
	at com.fortify.cli.sc_sast.scan.cli.cmd.SCSastControllerScanStartCommand.getJsonNode(SCSastControllerScanStartCommand.java:47)
	at com.fortify.cli.sc_sast.scan.cli.cmd.SCSastControllerScanStartCommand.getJsonNode(SCSastControllerScanStartCommand.java:1)
	at com.fortify.cli.common.output.cli.cmd.unirest.AbstractUnirestOutputCommand.run(AbstractUnirestOutputCommand.java:56)
	at com.fortify.cli.common.rest.cli.mixin.AbstractUnirestRunnerMixin.run(AbstractUnirestRunnerMixin.java:27)
	at com.fortify.cli.sc_sast.rest.cli.mixin.AbstractSCSastUnirestRunnerMixin.runOnController(AbstractSCSastUnirestRunnerMixin.java:30)
	at com.fortify.cli.sc_sast.rest.cli.mixin.SCSastControllerUnirestRunnerMixin.run(SCSastControllerUnirestRunnerMixin.java:15)
	at com.fortify.cli.common.rest.cli.cmd.AbstractUnirestRunnerCommand.run(AbstractUnirestRunnerCommand.java:41)
	at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:1)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
	at picocli.CommandLine.execute(CommandLine.java:2170)
	at com.fortify.cli.app.FortifyCLI.execute(FortifyCLI.java:83)
	at com.fortify.cli.app.FortifyCLI.main(FortifyCLI.java:62)
rsenden added a commit that referenced this issue Jan 17, 2023
…per error message if no options provided (fixes #232)
@github-actions github-actions bot mentioned this issue Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant