diff options
author | Barry Haddow <barry.haddow@gmail.com> | 2016-01-29 20:13:03 +0300 |
---|---|---|
committer | Barry Haddow <barry.haddow@gmail.com> | 2016-01-29 20:13:03 +0300 |
commit | 713a8e42339de2ddf1904472d8eb78e8f536f37a (patch) | |
tree | f77b1e102d77632fe15f61931cf8fd0a215a07cb | |
parent | 80572b43ecf2226e81875ed42940abdec0986669 (diff) |
dont crash if no translation in hiero serverprobing
-rw-r--r-- | moses/server/TranslationRequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/server/TranslationRequest.cpp b/moses/server/TranslationRequest.cpp index 3cfb4383e..863d4e94c 100644 --- a/moses/server/TranslationRequest.cpp +++ b/moses/server/TranslationRequest.cpp @@ -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); |