| Summary: | Error: 'object' is null or not an object | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Chris Fairhall <chris> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | austin.riddle, cole | ||||
| Version: | 1.5 | ||||||
| Target Milestone: | 1.5 M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Chris Fairhall
Created attachment 210694 [details]
Error displayed in browser
It looks like the cause to the issue is related to org.eclipse.ui.forms.widgets.Hyperlink and org.eclipse.ui.forms.widgets.ImageHyperlink When all code that creates the hyperlinks is commented out I get the following warning (but everything else works): Message: Expected identifier, string or number Line: 5 Char: 2097 Code: 0 URI: http://127.0.0.1:8088/rwt-resources/resources-8113dd26.js The Line/Char refers to the javascript class for org.eclipse.ui.forms.widgets.FormText The code in that class is: createImageSegment:function(b,a){ var c=new qx.ui.basic.Image(); c.setAppearance("formtext-image"); c.set({source:b,left:a[0],top:a[1],width:a[2],height:a[3],}); this._segments[this._segments.length]=c; this.add(c) } c.set(...); seems to have a missing element in the array. That was changed 6 days ago - version 1.5 in cvs (In reply to comment #2) I loaded the org.eclipse.rap.ui.forms plugin as source, removed the excess "," from the end of the array and it solves the problem. FYI, the trailing comma only breaks in IE, I've run into that several times. It could be that IE9 doesn't break anymore which may be why it wasn't caught. It also looks like there is a missing semicolon on the last line. Changes are in CVS HEAD. Thanks for the bug report! Added JSHint validation to the forms bundle to prevent such errors in the future. |