[shotwell/shotwell-0.24] piwigo: Prevent a critical



commit e8c60ee6ca74977bc28e1d5650f9c9d5c09e5e71
Author: Jens Georg <mail jensge org>
Date:   Mon Oct 3 22:12:01 2016 +0200

    piwigo: Prevent a critical
    
    Signed-off-by: Jens Georg <mail jensge org>

 plugins/shotwell-publishing/PiwigoPublishing.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala 
b/plugins/shotwell-publishing/PiwigoPublishing.vala
index c3a1bd0..2f70b03 100644
--- a/plugins/shotwell-publishing/PiwigoPublishing.vala
+++ b/plugins/shotwell-publishing/PiwigoPublishing.vala
@@ -1342,8 +1342,12 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, Object {
         bool isfirst = true;
         if (publishables != null) {
             foreach (Spit.Publishing.Publishable pub in publishables) {
-                string cur = pub.get_param_string(
+                string? cur = pub.get_param_string(
                     Spit.Publishing.Publishable.PARAM_STRING_EVENTCOMMENT);
+                if (cur == null) {
+                    continue;
+                }
+
                 if (isfirst) {
                     common = cur;
                     isfirst = false;


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