diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-08-24 18:12:42 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-08-24 18:12:42 +0200 |
commit | b81725b203cfceefd8577cf2ec4ca9dd0d618869 (patch) | |
tree | a111202dc037b3f4d37ee58a02d37fd4cfa8c4b5 | |
parent | 408cc9dc9f82cfb8ce21c8231ca194cf28958ccd (diff) |
DocData: Fix null reference not detected correctly
-rw-r--r-- | tools/doc/doc_data.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp index 398267937b..4f0f05b69d 100644 --- a/tools/doc/doc_data.cpp +++ b/tools/doc/doc_data.cpp @@ -294,6 +294,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: |