Skip to content

Commit

Permalink
Don't freeze null
Browse files Browse the repository at this point in the history
Reviewed By: acdlite

Differential Revision: D7567032

fbshipit-source-id: ea9c826d572371748c6e9b5defbb92b427d83bee
  • Loading branch information
sebmarkbage authored and facebook-github-bot committed Apr 10, 2018
1 parent a8e3c7f commit b4c7136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Libraries/StyleSheet/StyleSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ module.exports = {
if (__DEV__) {
for (const key in obj) {
StyleSheetValidation.validateStyle(key, obj);
Object.freeze(obj[key]);
if (obj[key]) {
Object.freeze(obj[key]);
}
}
}
return obj;
Expand Down

0 comments on commit b4c7136

Please sign in to comment.