[Fix/Svace] Add try catch to model-run
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 3 Mar 2021 02:11:51 +0000 (11:11 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 3 Mar 2021 06:43:13 +0000 (15:43 +0900)
commitc8595467f1ab650625df685d93499534a0464382
tree0aa78fc8cba2716608a225a95fb9fd4b18de20e0
parentd99555ec8ee9f531d92403e83ec192979a29118a
[Fix/Svace] Add try catch to model-run

The two functions of the following code may throw
exceptions. Handle them.
```
if (arg == "model") {
  return api_model_run();
} else {
  return ini_model_run(arg);
}
```

This fixes SVACE 457479.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Applications/Custom/LayerClient/jni/main.cpp