From 245946d679bd164b8847f6d6e0ec977ed1a557f9 Mon Sep 17 00:00:00 2001 From: Jan Olszak Date: Fri, 28 Dec 2012 14:04:14 +0100 Subject: [PATCH] [Prevent] Throw error on no ElementParser. [Issue] No return value in ElementParser getter. [Bug] N/A [Cause] N/A [Solution] Closed dir. [Verification] Build installer. Change-Id: I2fc42f26be52ce19d767fc88a566da8139f4ca8a --- src/configuration_parser/widget_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/configuration_parser/widget_parser.cpp b/src/configuration_parser/widget_parser.cpp index c64171b..f33004c 100755 --- a/src/configuration_parser/widget_parser.cpp +++ b/src/configuration_parser/widget_parser.cpp @@ -1682,6 +1682,8 @@ class LiveboxParser : public ElementParser return DPL::MakeDelegate(this, &LiveboxParser::BoxContentParser::OnBoxSizeElement); } else if (name == L"pd") { return DPL::MakeDelegate(this, &LiveboxParser::BoxContentParser::OnPdElement); + } else{ + ThrowMsg(Exception::ParseError, "No element parser for name: " << name); } } -- 2.7.4