Reject empty channel names

This commit is contained in:
Andrew Johnson
2021-10-20 20:06:55 -05:00
parent ace1a82c12
commit b8979b4152

View File

@@ -116,6 +116,8 @@ CAChannel::CAChannel(std::string const & channelName,
connectNotification(new Notification()), connectNotification(new Notification()),
ca_context(channelProvider->caContext()) ca_context(channelProvider->caContext())
{ {
if (channelName.empty())
throw std::invalid_argument("Channel name cannot be empty");
} }
void CAChannel::activate(short priority) void CAChannel::activate(short priority)