Skip to content

Commit 7953577

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 17d13b9 + 87c46a2 commit 7953577

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
55
package="org.coolreader"
66
android:installLocation="auto"
7-
android:versionName="3.2.4-1" android:versionCode="2041">
7+
android:versionName="3.2.6-1" android:versionCode="2061">
88
<supports-screens
99
android:xlargeScreens="true"
1010
android:largeScreens="true"

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
targetSdkVersion 26
99
// When new version released, version code must be incremented at least by 8
1010
// for compatibility with ABI versioning of split apk (see below).
11-
versionCode 2041
12-
versionName "3.2.4-1"
11+
versionCode 2061
12+
versionName "3.2.6-1"
1313
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1414
externalNativeBuild {
1515
cmake {

android/src/org/coolreader/Dictionaries.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,16 @@ public DictionaryException(String msg) {
179179
public void findInDictionary(String s) throws DictionaryException {
180180
log.d("lookup in dictionary: " + s);
181181
DictInfo curDict = currentDictionary;
182-
if (iDic2IsActive > 0)
182+
if (iDic2IsActive > 0 && currentDictionary2 != null)
183183
curDict = currentDictionary2;
184184
if (iDic2IsActive > 1)
185185
iDic2IsActive = 0;
186186
if (currentDictionary3 != null)
187187
curDict = currentDictionary3;
188188
currentDictionary3 = null;
189+
if (null == curDict) {
190+
throw new DictionaryException("Current dictionary are invalid!");
191+
}
189192
switch (curDict.internal) {
190193
case 0:
191194
Intent intent0 = new Intent(curDict.action);

0 commit comments

Comments
 (0)