diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2011-03-11 09:09:29 +1100 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-03-11 09:09:29 +1100 |
commit | da23cc46c4e405c035d81918f9392ab33241f49f (patch) | |
tree | 62006b71036982bd07f79ffbf2ff5ca8883f5ca7 | |
parent | 7869d98065ab57bfda52404c5f335cf15ab8cd7a (diff) | |
download | dconf-da23cc46c4e405c035d81918f9392ab33241f49f.tar.gz |
Fix crash viewing integer keys with no schema (Bug #644170)
-rw-r--r-- | 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); |