Skip to content

Commit

Permalink
minor change for invalid specification support in SpecChecker
Browse files Browse the repository at this point in the history
issue #28
  • Loading branch information
Valentin Noel committed Dec 3, 2013
1 parent 84ef587 commit cbf6dd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/SpecReader/src/SpecReader/SpecChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ void SpecChecker::check()
void SpecChecker::checkSubFile( rapidjson::Value::Member* member )
{
LOG_TRACE( "[speccheker] checkSubFile" );
if( member == nullptr )
throw std::runtime_error( "[speccheker] Invalid specification file: must contain a content field" );

for( rapidjson::Value::ValueIterator node = member->value.Begin(); node != member->value.End(); ++node )
{
for( rapidjson::Value::ConstMemberIterator itr = node->MemberBegin(); itr != node->MemberEnd(); ++itr )
Expand Down

0 comments on commit cbf6dd0

Please sign in to comment.