[gnome-games] libretro: Catch an error in LibretroIcon.get_icon()



commit e45c42ea08eba002298b5a5e05144c391e97a11a
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Feb 26 14:16:45 2017 +0100

    libretro: Catch an error in LibretroIcon.get_icon()

 plugins/libretro/src/libretro-icon.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/libretro/src/libretro-icon.vala b/plugins/libretro/src/libretro-icon.vala
index 6ed65c6..575cd61 100644
--- a/plugins/libretro/src/libretro-icon.vala
+++ b/plugins/libretro/src/libretro-icon.vala
@@ -8,10 +8,10 @@ public class Games.LibretroIcon : Object, Icon {
        }
 
        public GLib.Icon? get_icon () {
-               if (!core_descriptor.has_icon ())
-                       return null;
-
                try {
+                       if (!core_descriptor.has_icon ())
+                               return null;
+
                        return core_descriptor.get_icon ();
                }
                catch (Error e) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]