{"action":"closed","issue":{"url":"https://api.github.com/repos/catmaid/CATMAID/issues/1083","labels_url":"https://api.github.com/repos/catmaid/CATMAID/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/catmaid/CATMAID/issues/1083/comments","events_url":"https://api.github.com/repos/catmaid/CATMAID/issues/1083/events","html_url":"https://github.com/catmaid/CATMAID/issues/1083","id":96141613,"number":1083,"title":"TracingTool's Navigator's stackViewer is ending up null when switching projects","user":{"login":"aschampion","id":460206,"avatar_url":"https://avatars.githubusercontent.com/u/460206?v=3","gravatar_id":"","url":"https://api.github.com/users/aschampion","html_url":"https://github.com/aschampion","followers_url":"https://api.github.com/users/aschampion/followers","following_url":"https://api.github.com/users/aschampion/following{/other_user}","gists_url":"https://api.github.com/users/aschampion/gists{/gist_id}","starred_url":"https://api.github.com/users/aschampion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschampion/subscriptions","organizations_url":"https://api.github.com/users/aschampion/orgs","repos_url":"https://api.github.com/users/aschampion/repos","events_url":"https://api.github.com/users/aschampion/events{/privacy}","received_events_url":"https://api.github.com/users/aschampion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/catmaid/CATMAID/labels/priority:%20important","name":"priority: important","color":"e07400"},{"url":"https://api.github.com/repos/catmaid/CATMAID/labels/type:%20defect","name":"type: defect","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"aschampion","id":460206,"avatar_url":"https://avatars.githubusercontent.com/u/460206?v=3","gravatar_id":"","url":"https://api.github.com/users/aschampion","html_url":"https://github.com/aschampion","followers_url":"https://api.github.com/users/aschampion/followers","following_url":"https://api.github.com/users/aschampion/following{/other_user}","gists_url":"https://api.github.com/users/aschampion/gists{/gist_id}","starred_url":"https://api.github.com/users/aschampion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschampion/subscriptions","organizations_url":"https://api.github.com/users/aschampion/orgs","repos_url":"https://api.github.com/users/aschampion/repos","events_url":"https://api.github.com/users/aschampion/events{/privacy}","received_events_url":"https://api.github.com/users/aschampion/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-20T19:37:18Z","updated_at":"2015-07-31T19:22:25Z","closed_at":"2015-07-31T19:22:25Z","body":"Edit: corrected steps to reproduce.\r\n\r\nSteps to reproduce:\r\n\r\n1. Open a URL that deep links to the tracing tool\r\n2. Go to the home page\r\n3. Open another project/stack\r\n4. Open the tracing tool\r\n5. Open the neuron navigator\r\n6. Select a neuron from all neurons and double click on its skeleton row\r\n\r\nThis alerts an error because the `Navigator` in `TracingTool`'s prototype has a `stackViewer` which is null. Breaking on navigator register events shows that `stackViewer` is getting set correctly, but because of the strange tool inheritance scheme used it's still `null` when accessed via `TracingTool`'s `self.prototype.redraw()`. \r\n\r\nEdit 2:\r\n\r\nStranger still, the underlying problem is that there are multiple projects. The stack viewer's `_project`, being called when activating a node from the navigator, is not the same as the global `project`. Hence two tools, hence only one having `stackViewer` updated. "}}