odoo / o-spreadsheet

Other
193 stars 44 forks source link

[FW][FIX] parser: parsing empty string throws meaningful error #4827

Closed fw-bot closed 2 months ago

fw-bot commented 2 months ago

Description:

parse("") throws an error like cannot ready property of undefined.

Note that it doesn't cause any (known) real bug, but let's make it more robust nonetheless.

With this commit, it throws a user friendly message.

Task: : TASK_ID

review checklist

Forward-Port-Of: odoo/o-spreadsheet#4826 Forward-Port-Of: odoo/o-spreadsheet#4825

robodoo commented 2 months ago

Pull request status dashboard

fw-bot commented 2 months ago

@LucasLefevre @rrahir cherrypicking of pull request odoo/o-spreadsheet#4825 failed.

stdout:

Auto-merging src/formulas/parser.ts
CONFLICT (content): Merge conflict in src/formulas/parser.ts
Auto-merging tests/evaluation/parser.test.ts

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

:warning: after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port