diff options
Diffstat (limited to 'src/PixbufCache.vala')
| -rw-r--r-- | src/PixbufCache.vala | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/PixbufCache.vala b/src/PixbufCache.vala index 6ff740e..76fdbd3 100644 --- a/src/PixbufCache.vala +++ b/src/PixbufCache.vala @@ -120,7 +120,11 @@ public class PixbufCache : Object {      }      // This call never blocks.  Returns null if the pixbuf is not present. -    public Gdk.Pixbuf? get_ready_pixbuf(Photo photo) { +    public Gdk.Pixbuf? get_ready_pixbuf(Photo? photo) { +        if (photo == null) { +            return null; +        } +                  return get_cached(photo);      } | 
