diff --git a/AppKit/CPTheme.j b/AppKit/CPTheme.j index 345a3a56b..36a1b7c91 100644 --- a/AppKit/CPTheme.j +++ b/AppKit/CPTheme.j @@ -774,7 +774,7 @@ function CPThemeAttributeDecode(aCoder, anAttributeName, aDefaultValue, aTheme, { var attribute = [aCoder decodeObjectForKey:key]; - if (!attribute.isa || ![attribute isKindOfClass:[_CPThemeAttribute class]]) + if (!attribute || !attribute.isa || ![attribute isKindOfClass:[_CPThemeAttribute class]]) { var themeAttribute = [[_CPThemeAttribute alloc] initWithName:anAttributeName defaultValue:aDefaultValue];