Removed error checking code.  Want it to exception
@@ -626,18 +626,13 @@ public void fromJSON(String json) throws ColorScaleException
Map<?,?> nullColorMap = (Map<?,?>) colorScaleMap.get("NullColor");
- if (nullColorMap != null)
- {
String nullColorStr = (String) nullColorMap.get("color");
if (nullColorStr != null)
{
parseColor(nullColorStr, (String) nullColorMap.get("opacity"), nullColor);
}
- }
ArrayList<?> colorsList = (ArrayList<?>) colorScaleMap.get("Colors");
- if (colorsList != null)
- {
for (Object obj : colorsList)
{
Map<?,?> color = (Map<?, ?>) obj;
@@ -653,7 +648,6 @@ public void fromJSON(String json) throws ColorScaleException
}
}
}
- }
catch (IOException | NullPointerException e)
{
throw new BadJSONException(e);
