[jbosstools-issues] [JBoss JIRA] (JBIDE-10016) NullPointerException in VPE when an attribute is intensively changed
Yahor Radtsevich (Commented) (JIRA)
jira-events at lists.jboss.org
Tue Oct 25 07:55:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-10016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637132#comment-12637132 ]
Yahor Radtsevich commented on JBIDE-10016:
------------------------------------------
*Note:* I did not review [^JBIDE-10016_20111025.patch] completely yet, but the following change seems to be redundant, since there is only one thread, and synchronization is not necessary:
{code:title=VpeController.java}
/**
* @return the changeEvents
*/
public List<VpeEventBean> getChangeEvents() {
if (changeEvents == null) {
- changeEvents = new LinkedList<VpeEventBean>();
+ changeEvents = Collections.synchronizedList(new LinkedList<VpeEventBean>());
}
return changeEvents;
}
{code}
> NullPointerException in VPE when an attribute is intensively changed
> --------------------------------------------------------------------
>
> Key: JBIDE-10016
> URL: https://issues.jboss.org/browse/JBIDE-10016
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Visual Page Editor core
> Reporter: Yahor Radtsevich
> Assignee: Yahor Radtsevich
> Attachments: JBIDE-10016_20111025.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list