cancel
Showing results for 
Search instead for 
Did you mean: 

Webapp-rest. Bug in ProcessInstanceResource class?

f_lombardo
Champ in-the-making
Champ in-the-making
There is something I didn't understand in class  ProcessInstanceResource of the webapp-rest application.

At line 122 I see


        if (historicTaskInstance.getOwner() != null) {
          taskJSON.put("assignee", historicTaskInstance.getAssignee());
        } else {
          taskJSON.putNull("assignee");
        }

I think it should be


        if (historicTaskInstance.getAssignee() != null) { //<—
          taskJSON.put("assignee", historicTaskInstance.getAssignee());
        } else {
          taskJSON.putNull("assignee");
        }

But maybe I'm missing something.

Thanks in advance.

Bye

Franco
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Franco,

This is indeed a bug, fixed it in on trunk just now. Thanks for reporting.

https://github.com/Activiti/Activiti/commit/94bdabceee416e76d4654111e8c9e54beb3f4209

f_lombardo
Champ in-the-making
Champ in-the-making
Good, thanks!

Bye

Franco