Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ManualActivityCompletionClientImpl#fail does not set activityId which causes NPE #627

Open
arabczuk-equinix opened this issue Jul 27, 2021 · 4 comments

Comments

@arabczuk-equinix
Copy link

com.uber.cadence.internal.external.ManualActivityCompletionClientImpl#fail method does not set activityId on the instance of RespondActivityTaskFailedByIDRequest, which causes com.uber.cadence.internal.testservice.ActivityId#ActivityId(java.lang.String, com.uber.cadence.WorkflowExecution, java.lang.String) constructor to throw NullPointerException

@arabczuk-equinix
Copy link
Author

any updates on the issue?

@longquanzheng
Copy link
Collaborator

I will take a look.

@aauramionak
Copy link

Hey, any updates on this?
it just requires setting activityId in 'else' section of fail() method

  public void fail(Throwable failure) {
  ...
      if (activityId == null) {
        throw new IllegalArgumentException("Either activity id or task token are required");
      }
      request.setActivityID(activityId);

@rzarzecki-equinix
Copy link

It has been three months now. Any update on the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants