Skip to content

Commit 4245415

Browse files
committed
Do not segfault in a case of unexpected exception
1 parent dc23d91 commit 4245415

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/include/firebird/Interface.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ namespace Firebird
104104
public:
105105
static void catchException(IStatus* status)
106106
{
107+
if (!status)
108+
return;
109+
107110
try
108111
{
109112
throw;

0 commit comments

Comments
 (0)