mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
throws CachedCharStorageException from native code
This commit is contained in:
parent
30f0a850e2
commit
5de272c9d4
5 changed files with 19 additions and 5 deletions
|
@ -250,7 +250,10 @@ JNIEXPORT jboolean JNICALL Java_org_geometerplus_fbreader_formats_NativeFormatPl
|
|||
if (!plugin->readModel(*model)) {
|
||||
return JNI_FALSE;
|
||||
}
|
||||
model->flush();
|
||||
if (!model->flush()) {
|
||||
AndroidUtil::throwCachedCharStorageException("Cannot write file from native code");
|
||||
return JNI_FALSE;
|
||||
}
|
||||
|
||||
if (!initInternalHyperlinks(env, javaModel, *model) || !initTOC(env, javaModel, *model)) {
|
||||
return JNI_FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue