[dconf] Fix crash viewing integer keys with no schema (Bug #644170)
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] Fix crash viewing integer keys with no schema (Bug #644170)
- Date: Thu, 10 Mar 2011 22:09:35 +0000 (UTC)
commit da23cc46c4e405c035d81918f9392ab33241f49f
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Mar 11 09:09:29 2011 +1100
Fix crash viewing integer keys with no schema (Bug #644170)
editor/dconf-view.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-view.vala b/editor/dconf-view.vala
index 184f9bb..1725af1 100644
--- a/editor/dconf-view.vala
+++ b/editor/dconf-view.vala
@@ -39,7 +39,7 @@ private class KeyValueRenderer: Gtk.CellRenderer
spin_renderer.text = key.value.print(false);
var v = get_variant_as_double(key.value);
double min = 0.0, max = 0.0;
- if (key.schema.range != null)
+ if (key.schema != null && key.schema.range != null)
{
min = get_variant_as_double(key.schema.range.min);
max = get_variant_as_double(key.schema.range.max);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]