mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-02 10:33:36 +00:00
Fix possible native crash?
This commit is contained in:
parent
6512972f30
commit
ab0c0ed4d8
|
@ -1081,6 +1081,9 @@ JNIEXPORT jint Java_org_telegram_messenger_Utilities_saveProgressiveJpeg(JNIEnv
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
const char *pathStr = env->GetStringUTFChars(path, 0);
|
const char *pathStr = env->GetStringUTFChars(path, 0);
|
||||||
|
if (pathStr == NULL) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
std::string filePath = std::string(pathStr);
|
std::string filePath = std::string(pathStr);
|
||||||
if (pathStr != 0) {
|
if (pathStr != 0) {
|
||||||
env->ReleaseStringUTFChars(path, pathStr);
|
env->ReleaseStringUTFChars(path, pathStr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user