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

Bug 442815

Summary: Bad file breaks markdown editor
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 6.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
bad markdown file none

Description Mark Macdonald CLA 2014-08-28 12:02:36 EDT
Created attachment 246493 [details]
bad markdown file

1. Import the attached file
2. Open it with the Orion Markdown Editor

An error is thrown

TypeError: "Cannot read property 'index' of null"
> MarkdownStylingAdapter._advanceIndex (markdownEditor.js:543)
> MarkdownStylingAdapter.computeBlocks (markdownEditor.js:190)
> TextStyler.computeBlocks (textStyler.js:869)
> Block (textStyler.js:770)
> MarkdownStylingAdapter.createBlock (markdownEditor.js:382)
> MarkdownStylingAdapter.computeBlocks (markdownEditor.js:350)
> TextStyler.computeBlocks (textStyler.js:869)
> Block (textStyler.js:770)
> MarkdownStylingAdapter.createBlock (markdownEditor.js:382)
> MarkdownStylingAdapter.computeBlocks (markdownEditor.js:350)
> TextStyler.computeBlocks (textStyler.js:869)
> TextStyler._onModelChanged (textStyler.js:1302)
> ...

The preview pane fails to render. Most features in the text editor are also broken, so it's basically unusable.