Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
93f4aec0
Commit
93f4aec0
authored
10 years ago
by
Keisuke Kuroyanagi
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Wrong null check for user history dict.
Change-Id: Idf0bcc44247e35cd95f9482d2a8017329fc977bb
parent
56e4848e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java
+2
-2
2 additions, 2 deletions
...id/inputmethod/latin/DictionaryFacilitatorForSuggest.java
with
2 additions
and
2 deletions
java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java
+
2
−
2
View file @
93f4aec0
...
...
@@ -333,7 +333,7 @@ public class DictionaryFacilitatorForSuggest {
// of this method.
public
boolean
hasInitializedMainDictionary
()
{
final
Dictionary
mainDict
=
mDictionaries
.
getMainDict
();
return
mainDict
!=
null
&&
mainDict
.
isInitialized
();
return
mainDict
!=
null
&&
mainDict
.
isInitialized
();
}
public
boolean
hasPersonalizationDictionary
()
{
...
...
@@ -384,7 +384,7 @@ public class DictionaryFacilitatorForSuggest {
final
Dictionaries
dictionaries
=
mDictionaries
;
final
ExpandableBinaryDictionary
userHistoryDictionary
=
dictionaries
.
getSubDict
(
Dictionary
.
TYPE_USER_HISTORY
);
if
(
userHistoryDictionary
!
=
null
)
{
if
(
userHistoryDictionary
=
=
null
)
{
return
;
}
final
int
maxFreq
=
getMaxFrequency
(
suggestion
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment