--- /usr/bin/pypanel	2005-06-08 13:33:41.000000000 -0500
+++ /home/corey/tmp/pypanel	2005-08-21 22:33:49.000000000 -0500
@@ -314,7 +314,10 @@
             y = (P_HEIGHT-I_HEIGHT)/2
             w = I_WIDTH
             h = I_HEIGHT
-            name = task.tclass[0]
+            try:
+                name = task.tclass[0]
+            except IndexError:
+                name = task.name
         
         icon = task.icon    
         rc   = ppicon(self.window.id, icon.pixmap, icon.mask, x, y, icon.width,
