Skip to content

If muleVersion is not set and applyLatestRuntimePatch is true it fails with a NoSuchElementException #933

@f-schnabel

Description

@f-schnabel

If muleVersion is not set and applyLatestRuntimePatch is true it fails with a NoSuchElementException.

In here:

&& originalApplication.getMuleVersion().getVersion().equals(deployment.getMuleVersion().get())) {

Caused by: java.util.NoSuchElementException: No value present
    at java.util.Optional.get (Optional.java:143)
    at org.mule.tools.deployment.cloudhub.CloudHubArtifactDeployer.getApplication (CloudHubArtifactDeployer.java:207)
    at org.mule.tools.deployment.cloudhub.CloudHubArtifactDeployer.updateApplication (CloudHubArtifactDeployer.java:158)
...

I also added a PR in the Docs Repo if this behaviour is expected: mulesoft/docs-mule-runtime#2909

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions