Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jangernert/FeedReader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Long <self@brendanlong.com>2017-10-28 16:44:54 +0300
committerBrendan Long <self@brendanlong.com>2017-10-28 16:44:54 +0300
commitb6ead1c0cd403251ba0f0313190cc256125337b5 (patch)
tree495deaf3a96c9c1771787b9fab57ec2df41e35b5
parent14bc87a18a8b0e41851faa2bf152b9ebab4e4ccd (diff)
Add a missing favicon null check
-rw-r--r--src/FavIcon.vala4
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)
{