diff options
Diffstat (limited to 'src/header.cpp')
-rw-r--r-- | src/header.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/header.cpp b/src/header.cpp index 8e04cadc..2dc07b8f 100644 --- a/src/header.cpp +++ b/src/header.cpp @@ -171,14 +171,10 @@ shared_ptr <headerField> header::findField(const string& fieldName) const // No field with this name can be found if (pos == m_fields.end()) - { - throw exceptions::no_such_field(); - } + return null; + // Else, return a reference to the existing field - else - { - return (*pos); - } + return (*pos); } |