We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70ab29 commit f9bbdc3Copy full SHA for f9bbdc3
src/main/java/de/bluecolored/bluemap/api/math/Color.java
@@ -136,7 +136,7 @@ private static int parseColorString(String val) {
136
val.charAt(0) + val.charAt(0) + val.charAt(1) + val.charAt(1) +
137
val.charAt(2) + val.charAt(2) + val.charAt(3) + val.charAt(3);
138
if (val.length() == 6) val = val + "ff";
139
- if (val.length() != 8) throw new NumberFormatException("Invalid color format!");
+ if (val.length() != 8) throw new NumberFormatException("Invalid color format: '" + val + "'!");
140
val = val.substring(6, 8) + val.substring(0, 6); // move alpha to front
141
return Integer.parseUnsignedInt(val, 16);
142
}
0 commit comments