diff options
-rw-r--r-- | tests/ExecuteNetwork/ArmNNExecutor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ExecuteNetwork/ArmNNExecutor.cpp b/tests/ExecuteNetwork/ArmNNExecutor.cpp index ac857a90df..6955a492b3 100644 --- a/tests/ExecuteNetwork/ArmNNExecutor.cpp +++ b/tests/ExecuteNetwork/ArmNNExecutor.cpp @@ -612,7 +612,10 @@ std::unique_ptr<ArmNNExecutor::IParser> ArmNNExecutor::CreateParser() LogAndThrow("Not built with Onnx parser support."); #endif } - + if (parser == nullptr) + { + throw InvalidArgumentException("Unable to determine the model type based on the file name extension."); + } return parser; } |