Skip to content

Commit 038e960

Browse files
committed
Fixed #8520: Error in iTransaction.getInfo() on embedded connection
(cherry picked from commit 0ef342c)
1 parent b6cfe47 commit 038e960

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/yvalve/why.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4758,7 +4758,8 @@ void YTransaction::getInfo(CheckStatusWrapper* status, unsigned int itemsLength,
47584758
fb_utils::getDbPathInfo(itemsLength, items, bufferLength, buffer,
47594759
newItemsBuffer, attachment.get()->dbPath);
47604760

4761-
entry.next()->getInfo(status, itemsLength, items, bufferLength, buffer);
4761+
if (itemsLength)
4762+
entry.next()->getInfo(status, itemsLength, items, bufferLength, buffer);
47624763
}
47634764
catch (const Exception& e)
47644765
{

0 commit comments

Comments
 (0)