Merge pull request #5534 from keymanapp/fix/android/5509-json-parse-font-empty-string-check

fix(android): avoid error with empty font data
This commit is contained in:
Marc Durdin 2021-08-02 11:50:11 +10:00 • committed by GitHub
commit ca2195e332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1048,7 +1048,7 @@ final class KMKeyboard extends WebView {
*/
private JSONObject makeFontPaths(String font) {
if(font == null) {
if(font == null || font.equals("")) {
return null;
}