Skip to content

Commit

Permalink
Support null-values
Browse files Browse the repository at this point in the history
  • Loading branch information
bulenkov committed Mar 4, 2014
1 parent e8ad9ed commit 44dfb81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/com/bulenkov/darcula/DarculaLaf.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ private static void loadDefaults(UIDefaults defaults) {
}

private static Object parseValue(String key, String value) {
if ("null".equals(value)) {
return null;
}
if (key.endsWith("Insets")) {
final List<String> numbers = StringUtil.split(value, ",");
return new InsetsUIResource(Integer.parseInt(numbers.get(0)),
Expand Down

0 comments on commit 44dfb81

Please sign in to comment.