| Summary: | TemplateStore.getRegistry can cause NullPointerException | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Stephan Wahlbrink <sw> |
| Component: | Text | Assignee: | Roland Grunberg <rgrunber> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | karsten.thoms, loskutov |
| Version: | 4.9 | ||
| Target Milestone: | 4.10 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=535964 https://git.eclipse.org/r/130816 https://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=d3020689a3538017aa8a765b3f28c4f06f867956 |
||
| Whiteboard: | |||
|
Description
Stephan Wahlbrink
Why not simply cast the registry to org.eclipse.jface.text.templates.ContextTypeRegistry? As far as I can see, the constructors doesn't allow another type. Roland, please check. *At least* we should fix NPE, because getRegistry() can return null, it is a valid use case. New Gerrit change created: https://git.eclipse.org/r/130816 Gerrit change https://git.eclipse.org/r/130816 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=d3020689a3538017aa8a765b3f28c4f06f867956 |