| Summary: | [binding editor] NPE prevents creation of type binding | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P2 | ||||||
| Version: | 0.8 | ||||||
| Target Milestone: | 2.0 RC4 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stephan Herrmann
Created attachment 197304 [details] proposed fix This functionality was probably broken by the migration from TypeSelectionDialog2 to FilteredTypesSelectionDialog which we did for Eclipse 3.5. See in particular http://trac.objectteams.org/ot/changeset/19975 The NPE was caused by accessing getResult() before calling computeResult(). The patch changes this order and inserts a few more checks for safety. It also introduces more differentiated error messages when some required selection is not given. This functionality was completely broken. The patch is local to the broken class and thus introduces no further risk. Therefor I've releates the patch for RC4. Verified using build 201106031540 |