getSubField -> getSubFieldT to avoid potential NULL de-ref.

This commit is contained in:
Michael Davidsaver
2016-01-06 12:13:50 -05:00
parent d77ba8d622
commit 5019969d8a
3 changed files with 61 additions and 61 deletions

View File

@@ -37,7 +37,7 @@ CAClientSecurityPlugin::CAClientSecurityPlugin()
userName = buffer;
// TODO more error handling
m_userAndHost->getSubField<PVString>("user")->put(userName);
m_userAndHost->getSubFieldT<PVString>("user")->put(userName);
//
// host name
@@ -48,7 +48,7 @@ CAClientSecurityPlugin::CAClientSecurityPlugin()
hostName = buffer;
// TODO more error handling
m_userAndHost->getSubField<PVString>("host")->put(buffer);
m_userAndHost->getSubFieldT<PVString>("host")->put(buffer);
}