mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 03:39:27 +00:00
Fix crash during migration on Android by avoiding to throw exceptions. Apparently exceptions do not work reliabily on android, at least not with our current toolchain and compilation options.
This commit is contained in:
parent
7137ca85dc
commit
9fead71899
1 changed files with 3 additions and 5 deletions
|
|
@ -1256,13 +1256,11 @@ template<typename T>
|
|||
static T getValueFromRow (const soci::row &row, int index, bool &isNull) {
|
||||
isNull = false;
|
||||
|
||||
try {
|
||||
return row.get<T>(size_t(index));
|
||||
} catch (const exception &) {
|
||||
if (row.get_indicator(size_t(index)) == soci::i_null){
|
||||
isNull = true;
|
||||
return T();
|
||||
}
|
||||
|
||||
return T();
|
||||
return row.get<T>(size_t(index));
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue