Skip empty colors

This commit is contained in:
M66B 2019-09-24 20:00:48 +02:00
parent cd266ca94b
commit 984c1430bf
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ public class HtmlHelper {
Integer color = null;
try {
if (c.startsWith("#"))
if (TextUtils.isEmpty(c))
; // Do nothing
else if (c.startsWith("#"))
color = Integer.decode(c) | 0xFF000000;
else if (c.startsWith("rgb")) {
int s = c.indexOf("(");