Skip to content

Commit

Permalink
Fix NPE in UserDictionaryToolActivity.onPostResume
Browse files Browse the repository at this point in the history
BUG=
TEST=
REF_BUG=27512091
REF_CL=117196133
REF_TIME=2016-03-15T10:19:11+09:00
REF_TIME_RAW=1458004751 +0900
  • Loading branch information
matsuza committed Mar 15, 2016
1 parent 120d6a1 commit 09b47c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,15 @@ private void handleImportData() {
return;
}

if (!importUri.getScheme().equals("file")) {
if (!"file".equals(importUri.getScheme())) {
// Not a file.
toastManager.showMessageShortly(
R.string.user_dictionary_tool_error_import_source_invalid_scheme);
return;
}

// Need to read data from the file.
if (getIntent().getType().equals("application/zip")) {
if ("application/zip".equals(getIntent().getType())) {
handleZipImportData(importUri.getPath());
} else {
handleTextImportData(importUri.getPath());
Expand Down
2 changes: 1 addition & 1 deletion src/mozc_version_template.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MAJOR=2
MINOR=17
BUILD=2531
BUILD=2532
REVISION=102
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
# downloaded by NaCl Mozc.
Expand Down

0 comments on commit 09b47c3

Please sign in to comment.