DocData: Fix null reference not detected correctly

(cherry picked from commit b81725b203)
This commit is contained in:
Ignacio Etcheverry 2016-08-24 18:12:42 +02:00 committed by Rémi Verschelde
parent 07caf4438d
commit 103b04e529

View file

@ -296,6 +296,10 @@ void DocData::generate(bool p_basic_types) {
default_arg_text=Variant::get_type_name(default_arg.get_type())+default_arg_text;
break;
case Variant::OBJECT:
if (default_arg.is_zero()) {
default_arg_text="NULL";
break;
}
case Variant::INPUT_EVENT:
case Variant::DICTIONARY: // 20
case Variant::ARRAY: