<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NPE while deleting task candidates  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/npe-while-deleting-task-candidates/m-p/206990#M160120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting a NPE while deleting candidate group when a task has both user and group candidates and is assigned to a user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Debugging this further, I see that it is failing in the code block below while iterating through identity links when groupId passed in to TaskEntity.deleteIdentityLink method is not null but one of the identity links associated with the task is a user type. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if ((userId != null &amp;amp;&amp;amp; userId.equals(identityLinkEntity.getUserId()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|| (groupId != null &amp;amp;&amp;amp; identityLinkEntity.getGroupId().equals(groupId))) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Context&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.getCommandContext()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.getIdentityLinkEntityManager()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.deleteIdentityLink(identityLinkEntity, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;removedIdentityLinkEntities.add(identityLinkEntity);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is failing on (groupId != null &amp;amp;&amp;amp; identityLinkEntity.getGroupId().equals(groupId)) when groupId is passed in but identityLinkEntity being checked is a user so identityLinkEntity.getGroupId() is null. Should this be groupId.equals(identityLinkEntity.getGroupId()) instead ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like a bug, has this been reported or fixed in a later release - I am using 5.15.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2014 01:49:39 GMT</pubDate>
    <dc:creator>cnayak</dc:creator>
    <dc:date>2014-09-08T01:49:39Z</dc:date>
    <item>
      <title>NPE while deleting task candidates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-while-deleting-task-candidates/m-p/206990#M160120</link>
      <description>I am getting a NPE while deleting candidate group when a task has both user and group candidates and is assigned to a user. Debugging this further, I see that it is failing in the code block below while iterating through identity links when groupId passed in to TaskEntity.deleteIdentityLink method i</description>
      <pubDate>Mon, 08 Sep 2014 01:49:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-while-deleting-task-candidates/m-p/206990#M160120</guid>
      <dc:creator>cnayak</dc:creator>
      <dc:date>2014-09-08T01:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: NPE while deleting task candidates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-while-deleting-task-candidates/m-p/206991#M160121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Activiti 5.16.2 (which is only available in Maven central) and via the Activiti Github releases, this bug should have been fixed. Let us know if this doesn't solve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 18:50:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-while-deleting-task-candidates/m-p/206991#M160121</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-09-08T18:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: NPE while deleting task candidates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-while-deleting-task-candidates/m-p/206992#M160122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It has been fixed in 5.16.2. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:20:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-while-deleting-task-candidates/m-p/206992#M160122</guid>
      <dc:creator>cnayak</dc:creator>
      <dc:date>2014-09-08T19:20:31Z</dc:date>
    </item>
  </channel>
</rss>

