Skip to content

Commit

Permalink
Allow null version name (#178)
Browse files Browse the repository at this point in the history
getVersionName() should always return a string
  • Loading branch information
marcuspridham authored and tony19 committed May 11, 2018
1 parent aa0e223 commit 7cae3a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public String getVersionName() {
} catch (PackageManager.NameNotFoundException e) {
}
}
return versionName;
return versionName != null ? versionName : "";
}

private String absPath(File file) {
Expand Down

0 comments on commit 7cae3a1

Please sign in to comment.