Skip to content

Commit 6a3bdcc

Browse files
committed
chore: add null check
1 parent 2e98f9d commit 6a3bdcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Webapi/Model/Config/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function convertMethodParameters($parameters)
138138
}
139139
$name = $parameter->attributes->getNamedItem('name')->nodeValue;
140140
$forceNode = $parameter->attributes->getNamedItem('force');
141-
$force = filter_var($forceNode->nodeValue, FILTER_VALIDATE_BOOLEAN);
141+
$force = filter_var($forceNode ? $forceNode->nodeValue : false, FILTER_VALIDATE_BOOLEAN);
142142
$value = $parameter->nodeValue;
143143
$data[$name] = [
144144
self::KEY_FORCE => $force,

0 commit comments

Comments
 (0)