don't abort on some cases on exit
authorGuillaume Cottenceau <gcottenc@gmail.com>
Sun, 21 Jun 2009 12:49:58 +0000 (14:49 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Sun, 21 Jun 2009 12:49:58 +0000 (14:49 +0200)
bin/booh-classifier

index c229fe2..7c34307 100755 (executable)
@@ -737,11 +737,11 @@ class MainView < Gtk::DrawingArea
             if @entry && @entry.type == 'video'
                 window.draw_borders($videoborder_pixbuf, @xpos - $videoborder_pixbuf.width, @xpos + @pixbuf.width, @ypos, @ypos + @pixbuf.height)
             end
-            if ! @entry.outline_color.nil?
+            if @entry && ! @entry.outline_color.nil?
                 gc = Gdk::GC.new(window)
                 colormap.alloc_color(@entry.outline_color, false, true)
                 gc.set_foreground(@entry.outline_color)
-                if @entry && @entry.type == 'video'
+                if @entry.type == 'video'
                     xleft = @xpos - $videoborder_pixbuf.width
                     xright = @xpos + @pixbuf.width + $videoborder_pixbuf.width
                 else