MikeSchulze / gdUnit4

A Godot Unit Test Framework. Support for GDScript and C# unit testing
MIT License
490 stars 28 forks source link

GD-529: Fix null value access in the inspector. #530

Closed MikeSchulze closed 3 days ago

MikeSchulze commented 3 days ago

Why

A user reported an script error res://addons/gdUnit4/src/ui/parts/InspectorTreeMainPanel.gd:880 - Cannot call method 'get_meta' on a null value. It can only happen when no test/test suite is selected in the inspector.

What

Added a null check to avoid this kind of error