Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0.17
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
Using MVEL to set nested properties appears to be broken if the properties are null. Here's an example:
public static class User {
private Address address;
public Address getAddress()
{ return address; }public void setAddress(Address address)
{ this.address = address; }}
public static class Address {
private String city;
public String getCity()
{ return city; }public void setCity(String city)
{ this.city = city; }}
User u = new User();
Serializable expr = MVEL.compileSetExpression("address.city");
MVEL.executeSetExpression(expr, u, "Denver");
I thought that this was working in previous releases, but this now throws exceptions about null contexts and such.
Activity
Mike Brock
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Duplicate [ 3 ] |
Mike Brock
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |