mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
24.47.2010 ebf96a30d0122d35e271bad15f1f31a0a9100842
sdk/src/org/opends/sdk/responses/AbstractResponseImpl.java
@@ -36,6 +36,7 @@
import org.opends.sdk.DecodeOptions;
import org.opends.sdk.controls.Control;
import org.opends.sdk.controls.ControlDecoder;
import org.opends.sdk.controls.GenericControl;
import com.sun.opends.sdk.util.Validator;
@@ -74,7 +75,11 @@
  AbstractResponseImpl(Response response) throws NullPointerException
  {
    Validator.ensureNotNull(response);
    controls.addAll(response.getControls());
    for (Control control : response.getControls())
    {
      // Create defensive copy.
      controls.add(GenericControl.newControl(control));
    }
  }