Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Haddow <barry.haddow@gmail.com>2016-01-29 20:13:03 +0300
committerBarry Haddow <barry.haddow@gmail.com>2016-01-29 20:13:03 +0300
commit713a8e42339de2ddf1904472d8eb78e8f536f37a (patch)
treef77b1e102d77632fe15f61931cf8fd0a215a07cb
parent80572b43ecf2226e81875ed42940abdec0986669 (diff)
dont crash if no translation in hiero serverprobing
-rw-r--r--moses/server/TranslationRequest.cpp2
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);