summaryrefslogtreecommitdiff
path: root/src/PixbufCache.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2025-06-09 10:49:33 +0200
committerJörg Frings-Fürst <debian@jff.email>2025-06-09 10:49:33 +0200
commit361eb97e74a85fd3cbbb67a7a17281c49e2585f4 (patch)
treecb3f8e53587ee51cd0201765e6140dcc423ba4b0 /src/PixbufCache.vala
parente10377c3781fe84f10b3758b35bf403f91e6603a (diff)
parent7868ff68cff97b21fe6d8681f8bc0334849c4d38 (diff)
Update upstream source from tag 'upstream/0.32.13'
Update to upstream version '0.32.13' with Debian dir 0f2ff2784806da3772509f9284696f1cb7974946
Diffstat (limited to 'src/PixbufCache.vala')
-rw-r--r--src/PixbufCache.vala6
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);
}