Skip to content

Commit

Permalink
* [ios] fix issue about WXConvert 's UIColor method
Browse files Browse the repository at this point in the history
  • Loading branch information
coderyi authored Oct 19, 2016
1 parent 119a687 commit add193b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ + (UIColor *)UIColor:(id)value
colorCache.countLimit = 64;
});

if ([value isKindOfClass:[NSNull class]]) {
if ([value isKindOfClass:[NSNull class]] || !value) {
return nil;
}

Expand Down

0 comments on commit add193b

Please sign in to comment.