[gnome-maps] mainWindow: check that placeStore name is not null



commit 0d621cf6da33f04e02b65b581c7a33a21889df6a
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Fri Jan 24 12:25:18 2014 +0100

    mainWindow: check that placeStore name is not null

 src/mainWindow.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 61a740d..18aec45 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -124,6 +124,9 @@ const MainWindow = new Lang.Class({
             let model = completion.get_model();
             let name = model.get_value(iter, PlaceStore.Columns.NAME);
 
+            if (name === null)
+                return false;
+
             name = GLib.utf8_normalize (name, -1, GLib.NormalizeMode.ALL);
             if (name === null)
                 return false;


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