]
RH Bugzilla Integration commented on GTNPORTAL-3475:
----------------------------------------------------
Petr Mensik <pmensik(a)redhat.com> changed the Status of [bug
NPE in LinkedList$ListItr.next when iterating over
UIGroupMembershipSelect.getListMemberhip()
---------------------------------------------------------------------------------------------
Key: GTNPORTAL-3475
URL:
https://issues.jboss.org/browse/GTNPORTAL-3475
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Peter Palaga
Assignee: Peter Palaga
Fix For: 3.8.2.Final, 3.9.0.Final
Attachments: GTNPORTAL-3475.log
Looks like a concurrent modification of the {{LinkedList}} refered to by
{{UIGroupMembershipSelect.listMemberhip}}, because:
i. It is not always reproducible, the NPE occurs roughly once per 10 attempts.
ii. It happens on line {{next = next.next}} of the JRE's {{LinkedList.ListItr}} where
it is hard to thing of anything else than concurrent modification as a cause.
Steps to reproduce:
(1) Start clean Portal instance for the first time
(2) Go to Application Registry
(3) Import Applications
Not OK: There is an NPE logged (the whole log is attached):
{code:none}
Caused by: java.lang.NullPointerException
at java.util.LinkedList$ListItr.next(LinkedList.java:891) [rt.jar:1.7.0_55]
at UIGroupMembershipSelector.run(UIGroupMembershipSelector.gtmpl:20) at
org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
[exo.portal.component.scripting-3.8.0.Beta02-SNAPSHOT.jar:3.8.0.Beta02-SNAPSHOT]
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:115)
[exo.portal.component.scripting-3.8.0.Beta02-SNAPSHOT.jar:3.8.0.Beta02-SNAPSHOT]
{code}
Expected: No NPE