Skip to content

Commit df25e96

Browse files
Check correct variable for null
The wrong variable is being checked for null, which can cause a null reference exception
1 parent 412ba39 commit df25e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

InventoryCatalog/Model/ResourceModel/BulkInventoryTransfer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private function transferInventory(
127127

128128
if ($orgSourceItem !== null) {
129129
$status = (int) $orgSourceItem[SourceItemInterface::STATUS];
130-
} elseif ($dstSourceItemQty !== null) {
130+
} elseif ($dstSourceItem !== null) {
131131
$status = (int) $dstSourceItem[SourceItemInterface::STATUS];
132132
} else {
133133
$status = (int) SourceItemInterface::STATUS_OUT_OF_STOCK;

0 commit comments

Comments
 (0)