diff options
author | Brendan Long <self@brendanlong.com> | 2017-10-28 16:44:54 +0300 |
---|---|---|
committer | Brendan Long <self@brendanlong.com> | 2017-10-28 16:44:54 +0300 |
commit | b6ead1c0cd403251ba0f0313190cc256125337b5 (patch) | |
tree | 495deaf3a96c9c1771787b9fab57ec2df41e35b5 | |
parent | 14bc87a18a8b0e41851faa2bf152b9ebab4e4ccd (diff) |
Add a missing favicon null check
-rw-r--r-- | src/FavIcon.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FavIcon.vala b/src/FavIcon.vala index 4f01d006..86300fc5 100644 --- a/src/FavIcon.vala +++ b/src/FavIcon.vala @@ -67,8 +67,10 @@ public class FeedReader.FavIcon : GLib.Object try { Gdk.Pixbuf pixbuf = yield m_pixbuf.future.wait_async(); - return create_surface_from_pixbuf(pixbuf); + if(pixbuf == null) + return null; + return create_surface_from_pixbuf(pixbuf); } catch(Error e) { |