Small improvement

pull/200/head
M66B 4 years ago
parent 8d4cfb2052
commit 1e2e6e60f7

@ -392,7 +392,7 @@ public class EntityRule {
case TYPE_IMPORTANCE: case TYPE_IMPORTANCE:
return; return;
case TYPE_KEYWORD: case TYPE_KEYWORD:
String keyword = jargs.getString("keyword"); String keyword = jargs.optString("keyword");
if (TextUtils.isEmpty(keyword)) if (TextUtils.isEmpty(keyword))
throw new IllegalArgumentException(context.getString(R.string.title_rule_keyword_missing)); throw new IllegalArgumentException(context.getString(R.string.title_rule_keyword_missing));
return; return;

Loading…
Cancel
Save