Skip to content

java.lang.NullPointerException - release not found #95

@ismo-conguairta

Description

@ismo-conguairta

By using bsi token produces a NullPointerException because the lack of value for the releaseId attribute.

$ java -jar FodUpload-530.jar -ac <apikey> <apisecret> -z <package>.zip -bsi <bsitoken> -ep 1 -rp 0 -pp 0 -n "Packaged using ScanCentral tool"
Authenticating
Authenticated
java.io.IOException: Unexpected code: Response{protocol=http/1.1, code=404, message=Not Found, url=https://api.emea.fortify.com/api/v3/releases/0/static-scans/scan-setup}
	at com.fortify.fod.fodapi.controllers.ReleaseController.getReleaseScanSettings(ReleaseController.java:128)
	at com.fortify.fod.Main.main(Main.java:113)
java.lang.NullPointerException
	at com.fortify.fod.fodapi.controllers.ReleaseController.UpdateScanSettings(ReleaseController.java:196)
	at com.fortify.fod.Main.main(Main.java:113)

The resulting url is https://api.emea.fortify.com/api/v3/releases/0/static-scans/scan-setup where 0 should be the releaseId. In this case I guess 0 stands for null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions