File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments