[Prevent] Throw error on no ElementParser.
authorJan Olszak <j.olszak@samsung.com>
Fri, 28 Dec 2012 13:04:14 +0000 (14:04 +0100)
committerJan Olszak <j.olszak@samsung.com>
Fri, 28 Dec 2012 13:04:14 +0000 (14:04 +0100)
[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

index c64171b..f33004c 100755 (executable)
@@ -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);
             }
         }