This commit is contained in:
cepprice 2021-03-10 23:11:08 +05:00
parent c473f77a4d
commit 772df1dd46

View file

@ -1049,7 +1049,7 @@ public class Algorithms {
} }
public static String gradientPaletteToString(int[] colors) { public static String gradientPaletteToString(int[] colors) {
int[] src = colors.length == 3 ? colors : RouteColorize.colors; int[] src = (colors != null && colors.length == 3) ? colors : RouteColorize.colors;
return Algorithms.colorToString(src[0]) + " " + return Algorithms.colorToString(src[0]) + " " +
Algorithms.colorToString(src[1]) + " " + Algorithms.colorToString(src[1]) + " " +
Algorithms.colorToString(src[2]); Algorithms.colorToString(src[2]);