{"action":"created","issue":{"url":"https://api.github.com/repos/Baste-RainGames/Node_Editor/issues/101","repository_url":"https://api.github.com/repos/Baste-RainGames/Node_Editor","labels_url":"https://api.github.com/repos/Baste-RainGames/Node_Editor/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/Baste-RainGames/Node_Editor/issues/101/comments","events_url":"https://api.github.com/repos/Baste-RainGames/Node_Editor/issues/101/events","html_url":"https://github.com/Baste-RainGames/Node_Editor/issues/101","id":181329588,"number":101,"title":"Wierd behaviour of Nodetypes.FetchNode();","user":{"login":"m9731526","id":1814971,"avatar_url":"https://avatars.githubusercontent.com/u/1814971?v=3","gravatar_id":"","url":"https://api.github.com/users/m9731526","html_url":"https://github.com/m9731526","followers_url":"https://api.github.com/users/m9731526/followers","following_url":"https://api.github.com/users/m9731526/following{/other_user}","gists_url":"https://api.github.com/users/m9731526/gists{/gist_id}","starred_url":"https://api.github.com/users/m9731526/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m9731526/subscriptions","organizations_url":"https://api.github.com/users/m9731526/orgs","repos_url":"https://api.github.com/users/m9731526/repos","events_url":"https://api.github.com/users/m9731526/events{/privacy}","received_events_url":"https://api.github.com/users/m9731526/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-06T05:46:23Z","updated_at":"2016-10-10T05:49:04Z","closed_at":null,"body":"I'm creating a custom dialog system, made a canvas and all nodes, then **if I reopened unity with my nodes inside the project**(importing them back after reopen is ok), Node Editor will fail to load (stay grey) and stop at \r\n_FetchNodes_(): `node = node.create(Vector2.zero)`\r\nand keep saying \"NullReferenceException: Object reference not set to an instance of an object\".\r\n\r\nI spent several hours to test by inserting some Debug.Log() to FetchNodes(), and it seems that FetchNodes() refuse to accept _SystemControlNode_. \r\n\r\nThe order of the loop in the FetchNodes() are [several other nodes], _SystemConditionalNode_, then _SystemControlNode_, the loop will stop at _SystemControlNode_'s `node = node.create(Vector2.zero)` and does not even go into _SystemControlNode.Create(Vector2 pos)_.\r\n\r\nSo I gave it a try to change class name of SystemControlNode into \"ControlNode\" and bang! It works, pretty unexpected.\r\n\r\n\r\n\r\n[send.zip](https://github.com/Baste-RainGames/Node_Editor/files/512956/send.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/Baste-RainGames/Node_Editor/issues/comments/252541250","html_url":"https://github.com/Baste-RainGames/Node_Editor/issues/101#issuecomment-252541250","issue_url":"https://api.github.com/repos/Baste-RainGames/Node_Editor/issues/101","id":252541250,"user":{"login":"m9731526","id":1814971,"avatar_url":"https://avatars.githubusercontent.com/u/1814971?v=3","gravatar_id":"","url":"https://api.github.com/users/m9731526","html_url":"https://github.com/m9731526","followers_url":"https://api.github.com/users/m9731526/followers","following_url":"https://api.github.com/users/m9731526/following{/other_user}","gists_url":"https://api.github.com/users/m9731526/gists{/gist_id}","starred_url":"https://api.github.com/users/m9731526/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m9731526/subscriptions","organizations_url":"https://api.github.com/users/m9731526/orgs","repos_url":"https://api.github.com/users/m9731526/repos","events_url":"https://api.github.com/users/m9731526/events{/privacy}","received_events_url":"https://api.github.com/users/m9731526/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T05:49:04Z","updated_at":"2016-10-10T05:49:04Z","body":"They are not **NodeEditorFramework.Node**, but they do derived from **ScriptableObject**.\r\n\r\nI'll send you my DialogSystem.Data, since the other part of DialogSystem is irrelevant to the problem (and not even finished and used).\r\n\r\nBTW I just copied the original SystemControlNode back to my project and opened NodeEditor, same thing happened, here's the stack trace:\r\n\r\n```\r\nNullReferenceException: Object reference not set to an instance of an object\r\nNodeEditorFramework.NodeTypes.FetchNodes () (at Assets/Plugins/Node_Editor/Framework/NodeTypes.cs:35)\r\nNodeEditorFramework.NodeEditor.setupBaseFramework () (at Assets/Plugins/Node_Editor/Framework/NodeEditor.cs:76)\r\nNodeEditorFramework.NodeEditor.checkInit (Boolean GUIFunction) (at Assets/Plugins/Node_Editor/Framework/NodeEditor.cs:46)\r\nNodeEditorFramework.Standard.NodeEditorWindow.OnGUI () (at Assets/Plugins/Editor/Node_Editor/NodeEditorWindow.cs:126)\r\nSystem.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)\r\n```\r\n\r\nI'll upload the files later."}}
{"actor":{"display_login":"m9731526"}}