-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
EnvInject 1.91.2
When a build has no root cause (possible when firing the job programmatically), the code at org.jenkinsci.plugins.envinject.service.BuildCauseRetriever#buildCauseEnvironmentVariables produces a StringIndexOutOfBoundsException because the substring method is applied to an empty string.