I want to remove user from project roles.I am using the following method
ProjectRoleService.<strong><a href="https://docs.atlassian.com/jira/6.2.7/com/atlassian/jira/bc/projectroles/DefaultProjectRoleService.html#removeDefaultActorsFromProjectRole(com.atlassian.crowd.embedded.api.User,%20java.util.Collection,%20com.atlassian.jira.security.roles.ProjectRole,%20java.lang.String,%20com.atlassian.jira.util.ErrorCollection)" rel="nofollow noopener noreferrer">removeDefaultActorsFromProjectRole</a></strong>(com.atlassian.crowd.embedded.api.User currentUser, <a href="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" rel="nofollow noopener noreferrer">Collection</a><<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" rel="nofollow noopener noreferrer">String</a>> actors,<a href="https://docs.atlassian.com/jira/6.2.7/com/atlassian/jira/security/roles/ProjectRole.html" title="interface in com.atlassian.jira.security.roles" rel="nofollow noopener noreferrer">ProjectRole</a> projectRole, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" rel="nofollow noopener noreferrer">String</a> actorType, <a href="https://docs.atlassian.com/jira/6.2.7/com/atlassian/jira/util/ErrorCollection.html" title="interface in com.atlassian.jira.util" rel="nofollow noopener noreferrer">ErrorCollection</a> errorCollection)
I was passing ErrorCollection as null in JIRA 5.1.8 and it was working fine.But in JIRA 6.2.7 I am getting NullPointerException .
Please let me know how to initialize the ErrorCollection object ?
Thanks in advance.