The following causes the same error. Observe:
CODE
var Target = {
window: null
};
Target.window.location = "top";
01:03:24:567: [T:8326] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WE 01:03:24:567: [T:8326] ERROR!ERROR!ERROR!ERROR!ERROR!
WE 01:03:24:567: [T:8326] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WE 01:03:24:567: [T:8326] Ben's Test [com.yahoo.widgets.tv.test]
WE 01:03:24:567: [T:8326] TypeError: Target.window is null
WE 01:03:24:567: [T:8326] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WD 01:03:24:567: [T:8326] Script execution failed
Thanks, it gave me a brief idea of whats my error but I am still a bit lost.. So just to confirm, in this case, the error is caused because Target.window.location is null. Is it right?