Program: 82740
Project: 82740
Buggy source:
protected void prepareAndCheck(){
  Ivy ivy=getIvyInstance();
  IvySettings settings=ivy.getSettings();
  boolean orgAndModSetManually=(_organisation != null) && (_module != null);
  _organisation=getProperty(_organisation,settings,"String_Node_Str");
  _module=getProperty(_module,settings,"String_Node_Str");
  if (isInline()) {
    _conf=_conf == null ? "String_Node_Str" : _conf;
    if (_organisation == null) {
      throw new BuildException("String_Node_Str");
    }
    if (_module == null) {
      throw new BuildException("String_Node_Str");
    }
    if (_resolveId == null) {
      _resolveId=ResolveOptions.getDefaultResolveId(getResolvedModuleId());
    }
    String[] toResolve=getConfsToResolve(getOrganisation(),getModule() + "String_Node_Str",_conf,true);
    if (toResolve.length > 0) {
      Message.verbose("String_Node_Str" + getOrganisation() + "String_Node_Str"+ getModule()+ "String_Node_Str"+ getRevision()+ "String_Node_Str"+ StringUtils.join(toResolve,"String_Node_Str")+ "String_Node_Str");
      IvyResolve resolve=createResolve(isHaltonfailure(),isUseOrigin());
      resolve.setOrganisation(getOrganisation());
      resolve.setModule(getModule());
      resolve.setRevision(getRevision());
      resolve.setInline(true);
      resolve.setConf(_conf);
      resolve.execute();
    }
 else {
      Message.verbose("String_Node_Str" + getOrganisation() + "String_Node_Str"+ getModule()+ "String_Node_Str"+ getRevision()+ "String_Node_Str"+ _conf+ "String_Node_Str");
    }
    if ("String_Node_Str".equals(_conf)) {
      _conf=StringUtils.join(getResolvedConfigurations(getOrganisation(),getModule() + "String_Node_Str",true),"String_Node_Str");
    }
  }
 else {
    Message.debug("String_Node_Str");
    if (!orgAndModSetManually) {
      ensureResolved(isHaltonfailure(),isUseOrigin(),isTransitive(),getOrganisation(),getModule(),getProperty(_conf,settings,"String_Node_Str"));
    }
    _conf=getProperty(_conf,settings,"String_Node_Str");
    if ("String_Node_Str".equals(_conf)) {
      _conf=getProperty(settings,"String_Node_Str");
      if (_conf == null) {
        throw new BuildException("String_Node_Str");
      }
    }
  }
  _organisation=getProperty(_organisation,settings,"String_Node_Str");
  _module=getProperty(_module,settings,"String_Node_Str");
  if (_organisation == null) {
    throw new BuildException("String_Node_Str");
  }
  if (_module == null) {
    throw new BuildException("String_Node_Str");
  }
  if (_conf == null) {
    throw new BuildException("String_Node_Str");
  }
  if (_cache == null) {
    _cache=settings.getDefaultCache();
  }
  if (_resolveId == null) {
    _resolveId=ResolveOptions.getDefaultResolveId(getResolvedModuleId());
  }
  _artifactFilter=FilterHelper.getArtifactTypeFilter(_type);
}

Fixed version (ground truth):
protected void prepareAndCheck(){
  Ivy ivy=getIvyInstance();
  IvySettings settings=ivy.getSettings();
  boolean orgAndModSetManually=(_organisation != null) && (_module != null);
  _organisation=getProperty(_organisation,settings,"String_Node_Str");
  _module=getProperty(_module,settings,"String_Node_Str");
  if (isInline()) {
    _conf=_conf == null ? "String_Node_Str" : _conf;
    if (_organisation == null) {
      throw new BuildException("String_Node_Str");
    }
    if (_module == null) {
      throw new BuildException("String_Node_Str");
    }
    if (_resolveId == null) {
      _resolveId=ResolveOptions.getDefaultResolveId(getResolvedModuleId());
    }
    String[] toResolve=getConfsToResolve(getOrganisation(),getModule() + "String_Node_Str",_conf,true);
    if (toResolve.length > 0) {
      Message.verbose("String_Node_Str" + getOrganisation() + "String_Node_Str"+ getModule()+ "String_Node_Str"+ getRevision()+ "String_Node_Str"+ StringUtils.join(toResolve,"String_Node_Str")+ "String_Node_Str");
      IvyResolve resolve=createResolve(isHaltonfailure(),isUseOrigin());
      resolve.setOrganisation(getOrganisation());
      resolve.setModule(getModule());
      resolve.setRevision(getRevision());
      resolve.setInline(true);
      resolve.setConf(_conf);
      resolve.execute();
    }
 else {
      Message.verbose("String_Node_Str" + getOrganisation() + "String_Node_Str"+ getModule()+ "String_Node_Str"+ getRevision()+ "String_Node_Str"+ _conf+ "String_Node_Str");
    }
    if ("String_Node_Str".equals(_conf)) {
      _conf=StringUtils.join(getResolvedConfigurations(getOrganisation(),getModule() + "String_Node_Str",true),"String_Node_Str");
    }
  }
 else {
    Message.debug("String_Node_Str");
    if (!orgAndModSetManually) {
      ensureResolved(isHaltonfailure(),isUseOrigin(),isTransitive(),getOrganisation(),getModule(),getProperty(_conf,settings,"String_Node_Str"),_resolveId);
    }
    _conf=getProperty(_conf,settings,"String_Node_Str");
    if ("String_Node_Str".equals(_conf)) {
      _conf=getProperty(settings,"String_Node_Str");
      if (_conf == null) {
        throw new BuildException("String_Node_Str");
      }
    }
  }
  _organisation=getProperty(_organisation,settings,"String_Node_Str");
  _module=getProperty(_module,settings,"String_Node_Str");
  if (_organisation == null) {
    throw new BuildException("String_Node_Str");
  }
  if (_module == null) {
    throw new BuildException("String_Node_Str");
  }
  if (_conf == null) {
    throw new BuildException("String_Node_Str");
  }
  if (_cache == null) {
    _cache=settings.getDefaultCache();
  }
  if (_resolveId == null) {
    _resolveId=ResolveOptions.getDefaultResolveId(getResolvedModuleId());
  }
  _artifactFilter=FilterHelper.getArtifactTypeFilter(_type);
}