From: Mikko Rasa Date: Wed, 30 Dec 2020 16:41:38 +0000 (+0200) Subject: Fix an incorrect condition for throwing an exception X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=feb225725f96c1717f391855b7955937215b013e;p=libs%2Fdatafile.git Fix an incorrect condition for throwing an exception Null actions are allowed, so only throw if there was no match. --- diff --git a/source/loader.cpp b/source/loader.cpp index 51e22ed..6a4a8d8 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -229,7 +229,7 @@ LoaderAction *Loader::find_action(const StatementKey &key) const } } - if(!act) + if(!match) throw invalid_signature(key.keyword, key.signature); return act;