mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +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>
|
/// <summary> Make sure the graph editor is assigned and to the right object </summary>
|
||||||
private void ValidateGraphEditor() {
|
private void ValidateGraphEditor() {
|
||||||
NodeGraphEditor graphEditor = NodeGraphEditor.GetEditor(graph, this);
|
NodeGraphEditor graphEditor = NodeGraphEditor.GetEditor(graph, this);
|
||||||
if (this.graphEditor != graphEditor) {
|
if (this.graphEditor != graphEditor && graphEditor != null) {
|
||||||
this.graphEditor = graphEditor;
|
this.graphEditor = graphEditor;
|
||||||
graphEditor.OnOpen();
|
graphEditor.OnOpen();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user