{"action":"created","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1499","repository_url":"https://api.github.com/repos/cytoscape/cytoscape.js","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1499/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1499/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1499/events","html_url":"https://github.com/cytoscape/cytoscape.js/issues/1499","id":172304174,"number":1499,"title":"null reference to renderer in v2.7.8","user":{"login":"jiangliu","id":1931516,"avatar_url":"https://avatars.githubusercontent.com/u/1931516?v=3","gravatar_id":"","url":"https://api.github.com/users/jiangliu","html_url":"https://github.com/jiangliu","followers_url":"https://api.github.com/users/jiangliu/followers","following_url":"https://api.github.com/users/jiangliu/following{/other_user}","gists_url":"https://api.github.com/users/jiangliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangliu/subscriptions","organizations_url":"https://api.github.com/users/jiangliu/orgs","repos_url":"https://api.github.com/users/jiangliu/repos","events_url":"https://api.github.com/users/jiangliu/events{/privacy}","received_events_url":"https://api.github.com/users/jiangliu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"maxkfranz","id":989043,"avatar_url":"https://avatars.githubusercontent.com/u/989043?v=3","gravatar_id":"","url":"https://api.github.com/users/maxkfranz","html_url":"https://github.com/maxkfranz","followers_url":"https://api.github.com/users/maxkfranz/followers","following_url":"https://api.github.com/users/maxkfranz/following{/other_user}","gists_url":"https://api.github.com/users/maxkfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkfranz/subscriptions","organizations_url":"https://api.github.com/users/maxkfranz/orgs","repos_url":"https://api.github.com/users/maxkfranz/repos","events_url":"https://api.github.com/users/maxkfranz/events{/privacy}","received_events_url":"https://api.github.com/users/maxkfranz/received_events","type":"User","site_admin":false},"assignees":[{"login":"maxkfranz","id":989043,"avatar_url":"https://avatars.githubusercontent.com/u/989043?v=3","gravatar_id":"","url":"https://api.github.com/users/maxkfranz","html_url":"https://github.com/maxkfranz","followers_url":"https://api.github.com/users/maxkfranz/followers","following_url":"https://api.github.com/users/maxkfranz/following{/other_user}","gists_url":"https://api.github.com/users/maxkfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkfranz/subscriptions","organizations_url":"https://api.github.com/users/maxkfranz/orgs","repos_url":"https://api.github.com/users/maxkfranz/repos","events_url":"https://api.github.com/users/maxkfranz/events{/privacy}","received_events_url":"https://api.github.com/users/maxkfranz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-08-21T04:40:15Z","updated_at":"2016-08-22T19:37:31Z","closed_at":null,"body":"With v2.7.8, it triggers following violation after reinitializing cytoscape. And a simple protection could fix the issue by checking \"if (renderer)\" before calling \"renderer.notify( params );\" in function notify at line 7245 in file cytoscape.js. Error messages as below.\r\nThanks!\r\n\r\nCannot read property 'notify' of null\r\n隐藏详细\r\nTypeError: Cannot read property 'notify' of null at corefn.notify (http://127.0.0.1:8080/x5/UI2/v_8c3422a0b2d148ae8a2fd8f22767054dl_zh_CNs_desktopd_pc/etrack/common/plugin/cytoscape/cytoscape.js:7246:13) at elesfn.rtrigger (http://127.0.0.1:8080/x5/UI2/v_8c3422a0b2d148ae8a2fd8f22767054dl_zh_CNs_desktopd_pc/etrack/common/plugin/cytoscape/cytoscape.js:3644:15) at elesfn.updateStyle (http://127.0.0.1:8080/x5/UI2/v_8c3422a0b2d148ae8a2fd8f22767054dl_zh_CNs_desktopd_pc/etrack/common/plugin/cytoscape/cytoscape.js:5090:16) at null.select (http://127.0.0.1:8080/x5/UI2/v_8c3422a0b2d148ae8a2fd8f22767054dl_zh_CNs_desktopd_pc/etrack/common/plugin/cytoscape/cytoscape.js:5402:19) at mouseupHandler (http://127.0.0.1:8080/x5/UI2/v_8c3422a0b2d148ae8a2fd8f22767054dl_zh_CNs_desktopd_pc/etrack/common/plugin/cytoscape/cytoscape.js:15138:20)"},"comment":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/comments/241525108","html_url":"https://github.com/cytoscape/cytoscape.js/issues/1499#issuecomment-241525108","issue_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1499","id":241525108,"user":{"login":"maxkfranz","id":989043,"avatar_url":"https://avatars.githubusercontent.com/u/989043?v=3","gravatar_id":"","url":"https://api.github.com/users/maxkfranz","html_url":"https://github.com/maxkfranz","followers_url":"https://api.github.com/users/maxkfranz/followers","following_url":"https://api.github.com/users/maxkfranz/following{/other_user}","gists_url":"https://api.github.com/users/maxkfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkfranz/subscriptions","organizations_url":"https://api.github.com/users/maxkfranz/orgs","repos_url":"https://api.github.com/users/maxkfranz/repos","events_url":"https://api.github.com/users/maxkfranz/events{/privacy}","received_events_url":"https://api.github.com/users/maxkfranz/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T19:37:31Z","updated_at":"2016-08-22T19:37:31Z","body":"I can't reproduce this.  I just tried initialising on an already used div, and there's no error.  Would you please create a Jsbin that reproduces your issue?  You can just fork one of the demos to save time."}}
{"actor":{"display_login":"maxkfranz"}}