summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-05-21 14:23:26 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-05-21 14:23:26 +0000
commit7f59aae2fa7cfb69aafd0169a517035e949e9080 (patch)
tree44aa3f8ee92740c429dc4f82fb717983f0d86127 /TAO/TAO_IDL
parentd27a25fcfd4b603d7d70c933868fe93c7cb3023a (diff)
downloadATCD-7f59aae2fa7cfb69aafd0169a517035e949e9080.tar.gz
ChangeLogTag: Fri May 21 09:20:57 2004 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r--TAO/TAO_IDL/be/be_union.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_union.cpp b/TAO/TAO_IDL/be/be_union.cpp
index 12b2bf5889b..5ee7a7bd9fe 100644
--- a/TAO/TAO_IDL/be/be_union.cpp
+++ b/TAO/TAO_IDL/be/be_union.cpp
@@ -181,7 +181,10 @@ be_union::nlabels (void)
AST_UnionBranch *ub =
AST_UnionBranch::narrow_from_decl (d);
- retval += ub->label_list_length ();
+ if (ub != 0)
+ {
+ retval += ub->label_list_length ();
+ }
}
return retval;