diff --git a/fluents/view.py b/fluents/view.py index d1dfb9a..de6eb0d 100644 --- a/fluents/view.py +++ b/fluents/view.py @@ -214,7 +214,7 @@ class ViewFrame (gtk.Frame): elif isinstance(obj, fluents.dataset.Dataset): view = self.get_view() - if view.is_mappable_with(obj): + if view != None and view.is_mappable_with(obj): view._update_color_from_dataset(obj) elif isinstance(obj, fluents.dataset.Selection):