mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
dont crash if no translation in hiero server
This commit is contained in:
parent
80572b43ec
commit
713a8e4233
@ -334,7 +334,7 @@ run_chart_decoder()
|
||||
|
||||
const Moses::ChartHypothesis *hypo = manager.GetBestHypothesis();
|
||||
ostringstream out;
|
||||
outputChartHypo(out,hypo);
|
||||
if (hypo) outputChartHypo(out,hypo);
|
||||
|
||||
m_target_string = out.str();
|
||||
m_retData["text"] = xmlrpc_c::value_string(m_target_string);
|
||||
|
Loading…
Reference in New Issue
Block a user