Forces exceptions to throw on HAL handle creation functions (#209)

Fixes #199
This commit is contained in:
Thad House
2016-09-29 20:18:40 -07:00
committed by Peter Johnson
parent 81e63ea3a5
commit a656207220
11 changed files with 41 additions and 24 deletions

View File

@@ -134,7 +134,7 @@ Java_edu_wpi_first_wpilibj_hal_InterruptJNI_initializeInterrupts(
INTERRUPTJNI_LOG(logDEBUG) << "Interrupt Handle = " << interrupt;
INTERRUPTJNI_LOG(logDEBUG) << "Status = " << status;
CheckStatus(env, status);
CheckStatusForceThrow(env, status);
return (jint)interrupt;
}