Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when set undefined to reference type field #306

Closed
slavchev opened this issue Dec 17, 2015 · 0 comments
Closed

App crashes when set undefined to reference type field #306

slavchev opened this issue Dec 17, 2015 · 0 comments
Assignees
Milestone

Comments

@slavchev
Copy link

Steps to reproduce

// Class1.java
public class Class1 {
   public Object field1;
}
// test.js
var c1 = new Class1();
c1.field1 = undefined;

Maybe we can provide automatic conversion from undefined to null or throw an exception.

@slavchev slavchev added the bug label Dec 17, 2015
@petekanev petekanev self-assigned this Apr 6, 2016
Plamen5kov added a commit that referenced this issue Aug 11, 2016
we couldn't set undefined to a reference type field of a native object
now set with undefined and with null have the same behavior (return null)
@Plamen5kov Plamen5kov added this to the 2.3.0 milestone Aug 11, 2016
@petekanev petekanev assigned Plamen5kov and unassigned petekanev Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants