mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Merge pull request #240 from jeffcampbellmakesgames/fix/validate_nre
Added NRE check for ValidateGraphEditor
This commit is contained in:
commit
9a6746a898
@ -97,7 +97,7 @@ namespace XNodeEditor {
|
||||
/// <summary> Make sure the graph editor is assigned and to the right object </summary>
|
||||
private void ValidateGraphEditor() {
|
||||
NodeGraphEditor graphEditor = NodeGraphEditor.GetEditor(graph, this);
|
||||
if (this.graphEditor != graphEditor) {
|
||||
if (this.graphEditor != graphEditor && graphEditor != null) {
|
||||
this.graphEditor = graphEditor;
|
||||
graphEditor.OnOpen();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user