I have set a ItemPropertyChangeListener for a datasource’s related Entity attribute on a Edit screen (PickerField). It is working fine except for the scenario where the user selected the same related Entity from the related entity’s lookup screen. The problem is i got “nullpointerexception” in the listener code after returning from the lookup screen.
Seem like the listener is being triggered twice under this scenario - first time it changed the related entity attribute in the datasource to null (which causes the “nullpointerexception”) and then a second time it changed back to the original value. I couldn’t figure it out to solve the problem. Would much appreciate if anyone can help me out . Thanks in advance.