Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325421

Summary: [Webapp] Using RIGHT key on a help content tree leaf leads to Runtime Error
Product: [Eclipse Project] Platform Reporter: mannix_s
Component: User AssistanceAssignee: Chris Goldthorpe <cgold>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert
Version: 3.6   
Target Milestone: 3.7 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch none

Description mannix_s CLA 2010-09-16 05:32:01 EDT
Build Identifier: I20100608-0911

If you select a leaf element of the Help Contents tree and you press the RIGHT key an error window pops up:

   A Runtime Error has occurred.
   Do you wish to Debug?
   Line: 252
   Error: 'parentNode' ist Null oder kein Objekt

In English it means: 'parentNode' is Null or no Object

Having a look to the debug possibilities I ended at:

/help/advanced/helptree.js

The run pointer points to the first line of:

function makeVisible(treeItem) {
    var parent = getTreeItem(treeItem.parentNode); // <---



Reproducible: Always

Steps to Reproduce:
1. Open Eclipse Help (Help -> Help Contents)
2. From the Contents tree select a leaf (e.g. "Eclipse platform overview" which is a child of the top level element "Workbench User Guide)
3. Press the RIGHT key. This is normally used to open the childs of a parent element.
Comment 1 Chris Goldthorpe CLA 2010-09-20 12:26:08 EDT
Created attachment 179257 [details]
Patch
Comment 2 Chris Goldthorpe CLA 2010-09-20 12:27:57 EDT
Patch applied to HEAD, Fixed