Skip to content

Commit 2e70c05

Browse files
committed
fxs
1 parent e935c64 commit 2e70c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Common/Exception.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void Exception::clearThreadFramePointers()
272272

273273
Exception::~Exception()
274274
{
275-
if (logged && logged->load(std::memory_order_relaxed))
275+
if (logged != nullptr && logged->load(std::memory_order_relaxed))
276276
{
277277
const int error_code = code();
278278
const bool is_error_important = error_code == ErrorCodes::LOGICAL_ERROR
@@ -282,7 +282,7 @@ Exception::~Exception()
282282
|| error_code == ErrorCodes::CORRUPTED_DATA
283283
|| error_code == ErrorCodes::CHECKSUM_DOESNT_MATCH
284284
|| error_code == ErrorCodes::CANNOT_WRITE_TO_FILE_DESCRIPTOR;
285-
tryLogException(getLogger("~Exception"), *this, "An important exception was likely ignored, here it is");
285+
tryLogException(*this, getLogger("~Exception"), "An important exception was likely ignored, here it is");
286286
}
287287
}
288288

0 commit comments

Comments
 (0)