]> git.donarmstrong.com Git - lilypond.git/commitdiff
assert Grob_info doesn't get null pointers.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 19:35:22 +0000 (20:35 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 19:35:22 +0000 (20:35 +0100)
lily/grob-info.cc

index 62af8f32562a8864ceb500b69838111eb1dac592..aa6583f927dd13bdbe43ebb8263d6c20e2206bb8 100644 (file)
@@ -19,6 +19,11 @@ Grob_info::Grob_info (Translator *t, Grob *g)
   origin_trans_ = t;
   grob_ = g;
   start_end_ = START;
+
+  /*
+    assert here, because this is easier to debug.
+  */
+  assert (g);
 }
 
 Grob_info::Grob_info ()