fixes for defects from code coverity

This commit is contained in:
Alexander Alekhin
2014-01-28 20:22:56 +04:00
parent fff5a6c058
commit 5474935a81
5 changed files with 8 additions and 7 deletions

View File

@@ -467,7 +467,7 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1dims
LOGD("%s", method_name);
Mat* me = (Mat*) self; //TODO: check for NULL
return me->dims;
} catch(cv::Exception e) {
} catch(const cv::Exception& e) {
throwJavaException(env, &e, method_name);
} catch (...) {
throwJavaException(env, 0, method_name);