| Summary: | NPE when changing iFrame url via SWT browser evaluate() method | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Burkhart <mikelb> | ||||||||
| Component: | SWT | Assignee: | Grant Gayed <grant_gayed> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | eclipse.felipe | ||||||||
| Version: | 3.5.2 | ||||||||||
| Target Milestone: | 3.7 M6 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Michael Burkhart
Created attachment 187566 [details]
SWT Snippet Testcase
Created attachment 187567 [details]
HTML/javascript file for testing
I see the NPE sometimes and will look into this. However, note that if your snippet reflects what your app is doing then you can probably get around this bug simply by changing your Browser.evaluate() invocation to Browser.execute(). These should be functionally equivalent since the JS function is not returning anything, but will eliminate the BrowserFunction that is used by the Browser behind-the-scenes. Created attachment 189544 [details]
3.7-stream patch
Patch with fix for 3.7 stream. I see that you're based on 3.5.x, but I'm assuming that you can avoid this problem by using Browser.execute() instead of evaluate(), and therefore don't really need this fix in 3.5.x. If I'm wrong about this then you can follow up here.
fixed > 20110222 execute() will work fine for us, thanks for the hint, and thanks for the fix in the 3.7 stream. |