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

Bug 378946

Summary: Setting the title icon of a shell to null crashes the web client
Product: [RT] RAP Reporter: Johannes Eickhold <jeick>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Johannes Eickhold CLA 2012-05-09 05:41:32 EDT
When calling Decorations.setImage(null) to remove an icon from a shell's window decorations, the web client crashes with the following error:

Could not process server response:

Error: Error: Operation "set" on target "w18" of type "org.eclipse.swt.widgets.Shell" failed:
widget is not defined
Properties: 
image = null
text = Dialog +3
bounds = 537,74,225,303
children = w19,w20,w21,w24,w25,w26


  Script: {
"meta": {
"requestCounter": 13
},
"operations": [ [ "set", "w18", {
"image": null,
"text": "Dialog +3",
"bounds": [ 537, 74, 225, 303 ],
"children": [ "w19", "w20", "w21", "w24", "w25", "w26" ]
} ], [ "create", "w26", "rwt.widgets.Label", {
"parent": "w18",
"style": [ "NONE" ],
"bounds": [ 15, 266, 37, 20 ],
"tabIndex": -1,
"text": "TEST"
} ] ]
}
  fileName: http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js
  lineNumber: 254
  Stack: ([object Error],[object Array])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:254
([object Array])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:254
([object Object])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:254
([object Object])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:145
([object Object],(void 0))@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:17
([object Object])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:17
([object Object])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:118
([object Object])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:110
([object Object],(void 0))@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:17
([object Object])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:17
("completed","receiving")@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:111
anonymous("completed")@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:12
([object Object])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:111
([object Object],true)@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:17
([object Object],true)@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:17
("completed")@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:17
("completed","receiving")@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:114
anonymous("completed")@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:12
([object Event])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:114
([object Event])@http://localhost:8080/rwt-resources/rap-client-59ddb3ad.js:15

  Debug: off
  Request: org.eclipse.swt.events.widgetSelected=w22&w1.cursorLocation.x=611&w1.cursorLocation.y=147&uiRoot=w1&requestCounter=12
Comment 1 Ivan Furnadjiev CLA 2012-05-09 06:01:26 EDT
It was a typo in ShellAdapter property handler for image. Fixed in CVS HEAD.