From 9be5a43d56e83783d455585441cac61b4c55d1c5 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 19 Mar 2007 20:39:30 +0000 Subject: [PATCH] fix crash on import git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17487 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/converter.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/converter.C b/src/converter.C index 0188df95e4..7d8bb710eb 100644 --- a/src/converter.C +++ b/src/converter.C @@ -337,7 +337,10 @@ bool Converters::convert(Buffer const * buffer, from_ascii(from_format), from_ascii(to_format))); return false; } - OutputParams runparams(&buffer->params().encoding()); + + // buffer is only invalid for importing, and then runparams is not + // used anyway. + OutputParams runparams(buffer ? &buffer->params().encoding() : 0); runparams.flavor = getFlavor(edgepath); // Some converters (e.g. lilypond) can only output files to the -- 2.39.2