diff --git a/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs b/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs
index ac28bf0..8679ea0 100644
--- a/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs
+++ b/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs
@@ -162,6 +162,10 @@ namespace Hyena.Widgets
 
         private void DrawFrame (Cairo.Context cr, Gdk.Rectangle clip)
         {
+            if (child_allocation == null) {
+                return;
+            }
+
             int x = child_allocation.X - frame_width;
             int y = child_allocation.Y - frame_width;
             int width = child_allocation.Width + 2 * frame_width;
