dont crash if no translation in hiero server

This commit is contained in:
Barry Haddow 2016-01-29 17:13:03 +00:00
parent 80572b43ec
commit 713a8e4233

View File

@ -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);