Program: 34751
Project: 34751
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public void filter(ContainerRequestContext incomingRequestContext,ContainerResponseContext outgoingResponseContext) throws IOException {
  String methodName="String_Node_Str";
  Boolean skipped=(Boolean)incomingRequestContext.getProperty(OpentracingContainerFilter.SERVER_SPAN_SKIPPED_ID);
  if (skipped != null && skipped) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,methodName + "String_Node_Str");
    }
    incomingRequestContext.removeProperty(OpentracingContainerFilter.SERVER_SPAN_SKIPPED_ID);
    return;
  }
  Span incomingSpan=(Span)incomingRequestContext.getProperty(OpentracingContainerFilter.SERVER_SPAN_PROP_ID);
  if (incomingSpan == null) {
    Tr.error(tc,"String_Node_Str");
    return;
  }
 else {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,methodName + "String_Node_Str",incomingSpan);
    }
  }
  try {
    Integer httpStatus=Integer.valueOf(outgoingResponseContext.getStatus());
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,methodName + "String_Node_Str",httpStatus);
    }
    incomingSpan.setTag(Tags.HTTP_STATUS.getKey(),httpStatus);
    if (outgoingResponseContext.getStatus() >= 400) {
      MultivaluedMap<String,Object> headers=outgoingResponseContext.getHeaders();
      Throwable exception=(Throwable)headers.getFirst(EXCEPTION_KEY);
      if (exception != null) {
        headers.remove(EXCEPTION_KEY);
      }
      OpentracingService.addSpanErrorInfo(incomingSpan,exception);
    }
  }
  finally {
    incomingSpan.finish();
    incomingRequestContext.removeProperty(OpentracingContainerFilter.SERVER_SPAN_PROP_ID);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public void filter(ContainerRequestContext incomingRequestContext,ContainerResponseContext outgoingResponseContext) throws IOException {
  String methodName="String_Node_Str";
  Boolean skipped=(Boolean)incomingRequestContext.getProperty(OpentracingContainerFilter.SERVER_SPAN_SKIPPED_ID);
  if (skipped != null) {
    incomingRequestContext.removeProperty(OpentracingContainerFilter.SERVER_SPAN_SKIPPED_ID);
  }
  if (skipped != null && skipped) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,methodName + "String_Node_Str");
    }
    return;
  }
  ActiveSpan activeSpan=(ActiveSpan)incomingRequestContext.getProperty(OpentracingContainerFilter.SERVER_SPAN_PROP_ID);
  if (activeSpan == null) {
    Tr.error(tc,"String_Node_Str");
    return;
  }
  incomingRequestContext.removeProperty(OpentracingContainerFilter.SERVER_SPAN_PROP_ID);
  try {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,methodName + "String_Node_Str",activeSpan);
    }
    Integer httpStatus=Integer.valueOf(outgoingResponseContext.getStatus());
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,methodName + "String_Node_Str",httpStatus);
    }
    activeSpan.setTag(Tags.HTTP_STATUS.getKey(),httpStatus);
    if (outgoingResponseContext.getStatus() >= 400) {
      MultivaluedMap<String,Object> headers=outgoingResponseContext.getHeaders();
      Throwable exception=(Throwable)headers.getFirst(EXCEPTION_KEY);
      if (exception != null) {
        headers.remove(EXCEPTION_KEY);
      }
      OpentracingService.addSpanErrorInfo(activeSpan,exception);
    }
  }
  finally {
    activeSpan.deactivate();
  }
}