diff --git a/lib/src/objects/embed/EmbedProvider.dart b/lib/src/objects/embed/EmbedProvider.dart index 89d3dab86..ef10283ae 100644 --- a/lib/src/objects/embed/EmbedProvider.dart +++ b/lib/src/objects/embed/EmbedProvider.dart @@ -12,8 +12,11 @@ class EmbedProvider { String url; EmbedProvider._new(this.raw) { - this.name = raw['name']; - this.url = raw['url']; + if(raw['name' != null]) + this.name = raw['name']; + + if(raw['url'] != null) + this.url = raw['url']; } /// Returns a string representation of this object.