summaryrefslogtreecommitdiff
path: root/TAO/tests/Object_Loader/driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Object_Loader/driver.cpp')
-rw-r--r--TAO/tests/Object_Loader/driver.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/TAO/tests/Object_Loader/driver.cpp b/TAO/tests/Object_Loader/driver.cpp
index 5584458efcb..f0803cc6e7f 100644
--- a/TAO/tests/Object_Loader/driver.cpp
+++ b/TAO/tests/Object_Loader/driver.cpp
@@ -33,6 +33,13 @@ main (int, char *[])
Test_var test =
Test::_narrow (object.in ());
+ if (CORBA::is_nil (test.in ()))
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Nil object reference.\n"),
+ 1);
+ }
+
CORBA::Long count =
test->instance_count ();