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

Bug 446674

Summary: Trouble with opening files with uncommon extensions
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, curtis.windatt.public, emoffatt
Version: unspecified   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Maciej Bendkowski CLA 2014-10-10 10:57:11 EDT
Steps:

1. Ensure you have a folder with several files in it, some of which have uncommon extensions, e.g. launchConfigurations.
2. Click on the folder in the file navigator. Notice, that the RHS reloads.
3. Expand the folder and open a file with an uncommon extension in it, e.g. one of the *.launch files.
4. Witness an empty editor.

It turns out that the problem here is a NPE in hover.js, line 57:
if (validTypes.indexOf(this.inputManager._contentType.id) !== -1)

An additional check ensuring that this.inputManager._contentType.id is not null seems to resolve the problem. Could be related to bug 446601.
Comment 1 Anthony Hunter CLA 2015-05-08 12:17:08 EDT
This problem no longer occurs.