Buggy code:
public class CreateImageCommand extends DockerCommand { private final String dockerFolder ; private final String imageTag ; private final boolean noCache ; @ DataBoundConstructor public CreateImageCommand ( String dockerFolder , String imageTag , boolean noCache ) { } public String getDockerFolder ( ) { } public String getImageTag ( ) { } public boolean isNoCache ( ) { } @ Override public void execute ( @ SuppressWarnings ( "rawtypes" ) AbstractBuild build , final ConsoleLogger console ) throws DockerException { if ( ( dockerFolder ) == null ) { throw new IllegalArgumentException ( "dockerFolder<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>configured" ) ; } if ( ( imageTag ) == null ) { throw new IllegalArgumentException ( "imageTag<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>configured" ) ; } String dockerFolderRes = Resolver . buildVar ( build , dockerFolder ) ; String imageTagRes = Resolver . buildVar ( build , imageTag ) ; String expandedDockerFolder = expandEnvironmentVariables ( dockerFolderRes , build , console ) ; String expandedImageTag = expandEnvironmentVariables ( imageTagRes , build , console ) ; FilePath folder = new FilePath ( new File ( expandedDockerFolder ) ) ; if ( ! ( exist ( folder ) ) ) <START_BUG> throw new IllegalArgumentException ( ( ( "configured<seq2seq4repair_space>dockerFolder<seq2seq4repair_space>'" + expandedDockerFolder ) + "'<seq2seq4repair_space>does<seq2seq4repair_space>no<seq2seq4repair_space>exist." ) ) ; <END_BUG> FilePath dockerFile = folder . child ( "Dockerfile" ) ; if ( ! ( exist ( dockerFile ) ) ) throw new IllegalArgumentException ( ( ( "configured<seq2seq4repair_space>dockerFolder<seq2seq4repair_space>'" + folder ) + "'<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>a<seq2seq4repair_space>Dockerfile." ) ) ; DockerClient client = getClient ( ) ; try { File docker = new File ( expandedDockerFolder ) ; console . logInfo ( ( "Creating<seq2seq4repair_space>docker<seq2seq4repair_space>image<seq2seq4repair_space>from<seq2seq4repair_space>" + ( docker . getAbsolutePath ( ) ) ) ) ; InputStream istream = client . buildImageCmd ( docker ) . withTag ( expandedImageTag ) . withNoCache ( noCache ) . exec ( ) ; final List < JsonObject > errors = new ArrayList < JsonObject > ( ) ; try { readJsonStream ( istream , new CreateImageCommand . JsonObjectCallback ( ) { public void callback ( JsonObject json ) { if ( json . containsKey ( "stream" ) ) { console . log ( json . getString ( "stream" ) ) ; } else if ( json . containsKey ( "status" ) ) { console . log ( json . getString ( "status" ) ) ; } else { errors . add ( json ) ; console . logError ( json . toString ( ) ) ; } } } ) ; if ( ! ( errors . isEmpty ( ) ) ) { build . setResult ( FAILURE ) ; } else { console . logInfo ( ( "Sucessfully<seq2seq4repair_space>created<seq2seq4repair_space>image<seq2seq4repair_space>" + expandedImageTag ) ) ; } } finally { IOUtils . closeQuietly ( istream ) ; } } catch ( Exception e ) { throw new RuntimeException ( e ) ; } } private interface JsonObjectCallback { void callback ( JsonObject jsonObject ) { } } private void readJsonStream ( InputStream istream , CreateImageCommand . JsonObjectCallback callback ) throws IOException , UnsupportedEncodingException { } private String expandEnvironmentVariables ( String string , @ SuppressWarnings ( "rawtypes" ) AbstractBuild build , ConsoleLogger console ) { } @ Extension public static class CreateImageCommandDescriptor extends DockerCommandDescriptor { @ Override public String getDisplayName ( ) { } } private boolean exist ( FilePath filePath ) throws DockerException { } }

Fix:
throw new IllegalArgumentException ( ( ( "configured<seq2seq4repair_space>dockerFolder<seq2seq4repair_space>'" + expandedDockerFolder ) + "'<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) ) ;