| Summary: | AbstractTaskDataHandler.canInitializeSubTaskData may pass in a null taskRepository | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Robert Munteanu <robert.munteanu> | ||||
| Component: | Mylyn | Assignee: | Frank Becker <eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | 3.4 | ||||||
| Target Milestone: | 3.5 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I add: TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(selectedTask.getRepositoryUrl()); to updateSelection(IStructuredSelection selection) so you can verify this in the next weekly build. Created attachment 189381 [details]
mylyn/context/zip
|
In the MantisBT connector, the remote repository version dictates whether a task can be used to create a sub-task. As such, I need the TaskRepository instance which is used for the task. NewSubTaskAction.updateSelection always passes in a null taskRepository, so I need to resort to internals to obtain it: if ( taskRepository == null ) taskRepository = TasksUiPlugin.getRepositoryManager().getRepository(task.getRepositoryUrl()); Please consider passing in the actual task repository.