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

Bug 531590

Summary: CodeEdit: Null pointer exception when resizing end user's window.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: EditorAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 17.0   
Target Milestone: 18.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description libing wang CLA 2018-02-23 07:37:17 EST
A CodeEdit widget end user reported that when resizing their app window, they got NPE.
Stack trace:
codeEdit.js:1 Uncaught TypeError: Cannot set property 'rulerChanged' of null
   at b.redrawLines (VM912 codeEdit.js:1)
   at b.redrawRulers (VM912 codeEdit.js:1)
   at b.redraw (VM912 codeEdit.js:1)
   at b._updateStyle (VM912 codeEdit.js:1)
   at b._update (VM912 codeEdit.js:1)
   at VM912 codeEdit.js:1

It seems to occur when the window is resized, but not all the time, it's somewhat intermittent.
And it occurs on the page that lists all apps, when the editor is not being shown. The editor is visible by clicking "New App" then "Code Editor"
Comment 2 libing wang CLA 2018-02-23 07:44:17 EST
Not a show stopper and no real effect for end user's app but the NPE is urgly. Safe guarded the code.