| Summary: | NPE in ConditionalExpression#resolveType() | ||
|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Wayne Beaton <wayne.beaton> |
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | normal | ||
| Priority: | P3 | CC: | a.pagnozzi, cmjaun, thatnitind |
| Version: | 3.2 | ||
| Target Milestone: | 3.2.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Wayne Beaton
My mistake. It happens on every workspace build. I had to remove the validation builder from the project to be able to get anything done. I'll try to run the workspace in debug sometime tomorrow to see if I can identify the what code it's stumbling over. Do you have any sample source that reproduces this problem? From what I can tell, one of the YUI JS files that's causing trouble. I haven't had sufficient time to really understand what the code is doing, but the MethodDeclaration(AbstractMethodDeclaration).resolve(Scope) has the following value for "upperScope" --- JavaScriptUnit Scope : /www/eclipse.org-common/yui/2.6.0/build/profilerviewer/profilerviewer-beta.js You can obtain this file from the eclipse.org site: http://www.eclipse.org/eclipse.org-common/yui/2.6.0/build/profilerviewer/profilerviewer-beta.js I'll try to repeat this in a clean workspace. Ah. No joy initially. But I think I have an isolated example. 1) Create a new workspace 2) Create a new JavaScript project. 3) Drop http://www.eclipse.org/eclipse.org-common/yui/2.6.0/build/profilerviewer/profilerviewer-beta.js and http://www.eclipse.org/eclipse.org-common/yui/2.6.0/build/dragdrop/dragdrop.js into the project 4) Error occurs The error did not occur initially with only the profileviewer-beta.js script in the project. It occurred immediately after adding the dragdrop.js script (thereby invoking the build). The problem disappears when I remove the profileviewer-beta.js script. It then reappears if I re-add the file. If I'm reading the stack trace correctly (which isn't guaranteed), I believe that it's line 698 in profilerviewer-beta.js that's causing the problem: -- resizeable: (YAHOO.util.DragDrop) ? true : false, -- HTH. I can attach my workspace if you think that's valuable. Error no longer occurs in 3.2.1. |