I have a controller with following code
$data = $this->getRequest()->getPostValue();
$item_id = $data['item_id'];
$additionalOptions = $data['additional_options'];
$itemFactory = $this->itemFactory->create()->load($item_id);
$itemFactory->setAdditionalData($additionalOptions);
$itemFactory->save();
but it throws following error while saving the quote item data as follows.
Fatal error: Uncaught Error: Call to a member function getStoreId() on null in vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php:144 Stack trace: #0