apache / apache/royale-asjs

Uncaught TypeError: Cannot read property 'length' of null (ContainerDataBinding.js:67)

Open
#1,107 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

When I use fx:Binding in my application It will throw this exception
There's three arguments in ContainerDataBinding
binding.source
binding.destFunc
binding.destination
for Example if I am using binding in my application like this

**binding.source** should be sname and
**binding.destFunc** should be null and
**binding.destination** should be controller.scenario.name
But when i compile application binding.source** is sname **binding.destFunc** is controller.scenario.name and **binding.destination** is null
![image](https://user-images.githubusercontent.com/42200979/116867388-7f55db80-ac26-11eb-9f5e-10f47560bafa.png)
![image](https://user-images.githubusercontent.com/42200979/116867435-a01e3100-ac26-11eb-8881-d830cd81f2b0.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at ContainerDataBinding.js:67 and inspect how the three fx:Binding arguments—source, destFunc, and destination—are assigned during compilation. Reproduce the example using source="sname.text" and destination="controller.scenario.name", then verify that the compiled binding preserves the expected values and no longer throws the null length TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.