You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a container has a custom name specified with the container-name option, exposeAsEnvironment() throws an exception with the following stacktrace:
java.lang.NullPointerException: Cannot invoke method endsWith() on null object
at java_lang_String$endsWith$1.call(Unknown Source)
at com.avast.gradle.dockercompose.ComposeExtension$_exposeAsEnvironment_closure3$_closure9.doCall(ComposeExtension.groovy:68)
at com.avast.gradle.dockercompose.ComposeExtension$_exposeAsEnvironment_closure3.doCall(ComposeExtension.groovy:67)
at com.avast.gradle.dockercompose.ComposeExtension.exposeAsEnvironment(ComposeExtension.groovy:66)
at com.avast.gradle.dockercompose.ComposeExtension$exposeAsEnvironment$3.call(Unknown Source)
...
The issue is that the regex at line 124 of ComposeUp will not necessarily match a custom container name. This leads to a null value of instanceName, which eventually causes the exception.
I will submit a pull request fixing this issue momentarily.
The text was updated successfully, but these errors were encountered:
If a container has a custom name specified with the
container-name
option,exposeAsEnvironment()
throws an exception with the following stacktrace:The issue is that the regex at line 124 of
ComposeUp
will not necessarily match a custom container name. This leads to anull
value ofinstanceName
, which eventually causes the exception.I will submit a pull request fixing this issue momentarily.
The text was updated successfully, but these errors were encountered: