]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-context.cc
* lily/lexer.ll: accept EOF in all states.
[lilypond.git] / lily / global-context.cc
index 40fe3a61cdb7a0b657398fc459bde7a7e6a87ed7..ddcec501ba4ec521d56176387d004405210fd96e 100644 (file)
@@ -114,7 +114,11 @@ Global_context::get_score_context () const
 SCM
 Global_context::get_output ()
 {
-  return get_score_context ()->get_property ("output");
+  Context * c = get_score_context ();
+  if (c)
+    return c->get_property ("output");
+  else
+    return SCM_EOL;
 }
 
 void