mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
Fix a crash running the tests when running 'gradle connectedCheck' when the espeak application is not installed.
This commit is contained in:
@@ -176,7 +176,7 @@ JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeGetSampleRate(
|
||||
JNIEnv *env, jobject object) {
|
||||
if (DEBUG) LOGV("%s", __FUNCTION__);
|
||||
const native_data_t *nat = getNativeData(env, object);
|
||||
return (jint) nat->sampleRate;
|
||||
return (jint)(nat ? nat->sampleRate : 0);
|
||||
}
|
||||
|
||||
JNIEXPORT jint
|
||||
|
||||
Reference in New Issue
Block a user