Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2008-05-13 21:18:53 +0000
committerChris Goldthorpe2008-05-13 21:18:53 +0000
commitc1e50e4cc6b6baace8ffd9c1466bdaf8e45cb023 (patch)
treec0b291fabea5a191802793bd13ad5316e1bf3291 /org.eclipse.help
parent567f3e99aa395f1de8fd797bfb59f05e143b4f88 (diff)
downloadeclipse.platform.ua-c1e50e4cc6b6baace8ffd9c1466bdaf8e45cb023.tar.gz
eclipse.platform.ua-c1e50e4cc6b6baace8ffd9c1466bdaf8e45cb023.tar.xz
eclipse.platform.ua-c1e50e4cc6b6baace8ffd9c1466bdaf8e45cb023.zip
Bug 230037 – [regression] Errors trying to open Help from the About box
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/UAElement.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java b/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java
index 884df9f0e..16076175a 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java
@@ -153,7 +153,12 @@ public class UAElement implements IUAElement {
return null;
}
- public IUAElement[] getChildren() {
+ /*
+ * This method is synchronized to fix Bug 230037. A review of the code indicated that there was no
+ * path which could get blocked and cause deadlock. When modifying this source be careful not
+ * to introduce any logic which could possibly cause this thread to block.
+ */
+ public synchronized IUAElement[] getChildren() {
if (children == null) {
if (element.hasChildNodes()) {
children = new ArrayList(4);

Back to the top