From e4fee717a8f505fd6428d326eb7e28cae401dcb4 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Tue, 26 Mar 2013 22:11:57 +0100 Subject: [PATCH] pvinfo null introspection data check --- testApp/remote/pvinfo.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/testApp/remote/pvinfo.cpp b/testApp/remote/pvinfo.cpp index b9fa995..49fccd0 100644 --- a/testApp/remote/pvinfo.cpp +++ b/testApp/remote/pvinfo.cpp @@ -149,9 +149,16 @@ int main (int argc, char *argv[]) dynamic_pointer_cast(getFieldRequesterImpl->getField()); channel->printInfo(); - String s; - structure->toString(&s); - std::cout << s << std::endl << std::endl; + if (structure) + { + String s; + structure->toString(&s); + std::cout << s << std::endl << std::endl; + } + else + { + std::cout << "(null introspection data)" << std::endl << std::endl; + } } else {