mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 14:01:18 +00:00
Merge pull request #2148 from zittix/patch-2
Fixed: Crash of press tool due to theme attribute not set
This commit is contained in:
commit
c2f7f2ad27
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user