Fixed getting InputInfo name for empty object (#4564)

This commit is contained in:
Ilya Lavrenov 2021-03-03 07:24:09 +03:00 committed by GitHub
parent 6fb742bec4
commit f5da64db8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,9 @@ public:
* @return A string - the name of the input
*/
const std::string& name() const {
if (!_inputData) {
THROW_IE_EXCEPTION << "Data is empty!";
}
return _inputData->getName();
}