diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-26 22:50:15 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-26 22:50:15 +0200 |
commit | 9a1d9a41eba29bbb9608b0b0f8f9c2ca65ab426f (patch) | |
tree | d8a67009c1a2c937a8c1b4b331c2243836281736 /modules/gridmap | |
parent | 53c0010932f9c1becb63c16243f3a00ede359989 (diff) |
Add several missing Null checks in _notification
This fixes #6118
Diffstat (limited to 'modules/gridmap')
-rw-r--r-- | modules/gridmap/grid_map_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map_editor_plugin.cpp b/modules/gridmap/grid_map_editor_plugin.cpp index 561efb9d0f..3bab1bfbc1 100644 --- a/modules/gridmap/grid_map_editor_plugin.cpp +++ b/modules/gridmap/grid_map_editor_plugin.cpp @@ -835,6 +835,9 @@ void GridMapEditor::_notification(int p_what) { duplicate_instance = RID(); } else if (p_what == NOTIFICATION_PROCESS) { + if (!node) { + return; + } Transform xf = node->get_global_transform(); |