Commit e12d3337 authored by Konstantin Bulenkov's avatar Konstantin Bulenkov
Browse files

fix exception on start and falling lightbeam tests

parent 8dbba102
Branches unavailable Tags unavailable
No related merge requests found
Showing with 2 additions and 3 deletions
+2 -3
......@@ -109,6 +109,8 @@ public class UITheme {
if ("null".equals(value)) {
return null;
}
if ("true".equals(value)) return Boolean.TRUE;
if ("false".equals(value)) return Boolean.FALSE;
if (key.endsWith("Insets") || key.endsWith("padding")) {
return parseInsets(value);
......@@ -131,7 +133,6 @@ public class UITheme {
} else {
final Color color = parseColor(value);
final Integer invVal = getInteger(value);
final Boolean boolVal = "true".equals(value) ? Boolean.TRUE : "false".equals(value) ? Boolean.FALSE : null;
Icon icon = value.startsWith("AllIcons.") ? IconLoader.getIcon(value) : null;
if (color != null) {
return new ColorUIResource(color);
......@@ -139,8 +140,6 @@ public class UITheme {
return invVal;
} else if (icon != null) {
return new IconUIResource(icon);
} else if (boolVal != null) {
return boolVal;
}
}
return value;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment