Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325421 - [Webapp] Using RIGHT key on a help content tree leaf leads to Runtime Error
Summary: [Webapp] Using RIGHT key on a help content tree leaf leads to Runtime Error
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.7 M3   Edit
Assignee: Chris Goldthorpe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 05:32 EDT by mannix_s CLA
Modified: 2010-09-21 12:12 EDT (History)
1 user (show)

See Also:


Attachments
Patch (1.07 KB, patch)
2010-09-20 12:26 EDT, Chris Goldthorpe CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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