зеркало из https://github.com/microsoft/LightGBM.git
[Java] add missing JNI exception checks to fix warnings (#2405)
* add missing JNI exception checks to fix warnings * updated based on comments * removed rethrow logic * replace tabs with spaces
This commit is contained in:
Родитель
a0a117aab8
Коммит
7b2963d9a5
|
@ -156,7 +156,13 @@
|
|||
|
||||
// get the size, indices and values
|
||||
auto indices = (jintArray)jenv->CallObjectMethod(objSparseVec, sparseVectorIndices);
|
||||
if (jenv->ExceptionCheck()) {
|
||||
return -1;
|
||||
}
|
||||
auto values = (jdoubleArray)jenv->CallObjectMethod(objSparseVec, sparseVectorValues);
|
||||
if (jenv->ExceptionCheck()) {
|
||||
return -1;
|
||||
}
|
||||
int size = jenv->GetArrayLength(indices);
|
||||
|
||||
// Note: when testing on larger data (e.g. 288k rows per partition and 36mio rows total)
|
||||
|
|
Загрузка…
Ссылка в новой задаче