mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Fixed parsing of "false"
This commit is contained in:
parent
16cda3321e
commit
919f97185c
@ -126,7 +126,7 @@ public:
|
||||
auto type = Wrapper::Class::getType();
|
||||
oatpp::parser::Caret caret(str);
|
||||
auto result = read(caret, type).template cast<Wrapper>();
|
||||
if(!result) {
|
||||
if(result == nullptr) {
|
||||
throw oatpp::parser::ParsingError(caret.getErrorMessage(), caret.getErrorCode(), caret.getPosition());
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user