diff options
author | Knut Petter Svendsen <knut@altuma.no> | 2019-11-15 11:19:33 +0100 |
---|---|---|
committer | Knut Petter Svendsen <knut@altuma.no> | 2019-11-15 11:19:33 +0100 |
commit | d8ee3a8f8d68fc938e2026edd8072246efc4fdf7 (patch) | |
tree | 52aa3960ede723135850bbfe1a2ba3126ea81171 | |
parent | c32fd2dbacc8d969e3dbf87fe68c211177620c6c (diff) | |
download | ATCD-d8ee3a8f8d68fc938e2026edd8072246efc4fdf7.tar.gz |
Prevent crash
-rw-r--r-- | TAO/TAO_IDL/ast/ast_annotation_appls.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/ast/ast_annotation_appls.cpp b/TAO/TAO_IDL/ast/ast_annotation_appls.cpp index 47132667e01..7f4949ddbd2 100644 --- a/TAO/TAO_IDL/ast/ast_annotation_appls.cpp +++ b/TAO/TAO_IDL/ast/ast_annotation_appls.cpp @@ -102,7 +102,13 @@ AST_Annotation_Appls::find (const char *annotation) return 0; } - AST_Decl* decl = idl_global->scopes ().bottom ()->lookup_by_name (annotation); + UTL_Scope* bottom = idl_global->scopes ().bottom (); + if (!bottom) + { + return 0; + } + + AST_Decl* decl = bottom->lookup_by_name (annotation); if (!decl) { return 0; |