Error Upgrading OJS to getSubmissionId() on null


I got the following error while upgrading from OJS to

PHP Fatal error:  Uncaught Error: Call to a member function getSubmissionId() on null in /var/www/wwwroot/ojs/lib/pkp/classes/submission/reviewAssignment/
Stack trace:
#0 /var/www/wwwroot/ojs/lib/pkp/classes/submission/reviewAssignment/ ReviewAssignmentDAO->updateReviewRoundStatus(NULL)
#1 /var/www/wwwroot/ojs/classes/install/ ReviewAssignmentDAO->deleteById('11')
#2 /var/www/wwwroot/ojs/lib/pkp/classes/install/ Upgrade->removeCancelledReviewAssignments(Object(Upgrade), Array)
#3 /var/www/wwwroot/ojs/lib/pkp/classes/install/ Installer->executeAction(Array)
#4 /var/www/wwwroot/ojs/lib/pkp/classes/install/ Installer->executeInstaller()
#5 /var/www/wwwroot/ojs/lib/pkp/classes/cliTool/ Installer->execute()
#6 /var/www/wwwroot/ojs/lib/pkp/classes/cliTool/ UpgradeTool->upgrade()
#7 /var/www/wwwroot/ojs/tools/upgrade.php(34): UpgradeT in /var/www/wwwroot/ojs/lib/pkp/classes/submission/reviewAssignment/ on line 455

Can anyone help me on how to solve this issue?

I already run the following code to check if there are any submissions that not exist in the review assignment:

SELECT review_id, submission_id, reviewer_id, reviewer_file_id, round FROM review_assignments WHERE submission_id NOT IN (SELECT submission_id FROM submissions);

I found a few and already deleted all. Unfortunately, I still have the above issue when trying to upgrade the OJS.

Thanks in advance for your help.

Hi, i´m facing the same problem. Did you solve it?