Skip to content

Commit c5a6390

Browse files
author
Capacitor+ Bot
committed
chore: sync upstream PR ionic-team#7535 from @aleixfargas
2 parents 270d700 + 11e87de commit c5a6390

File tree

1 file changed

+1
-1
lines changed
  • android/capacitor/src/main/java/com/getcapacitor/util

1 file changed

+1
-1
lines changed

android/capacitor/src/main/java/com/getcapacitor/util/WebColor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class WebColor {
1111
*/
1212
public static int parseColor(String colorString) {
1313
String formattedColor = colorString;
14-
if (colorString.charAt(0) != '#') {
14+
if (!colorString.isEmpty() && colorString.charAt(0) != '#') {
1515
formattedColor = "#" + formattedColor;
1616
}
1717

0 commit comments

Comments
 (0)