pvinfo null introspection data check

This commit is contained in:
Matej Sekoranja
2013-03-26 22:11:57 +01:00
parent 2233439fad
commit e4fee717a8

View File

@@ -149,9 +149,16 @@ int main (int argc, char *argv[])
dynamic_pointer_cast<const Structure>(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
{