Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
ipojo-runtime-1.12.1
-
None
-
None
Description
OnSet and OnGet are always called with the a non null pojo object.
Or documentation notifies that onSet method can be called with a null pojo object in case of the value is modified by a Handler. This call is executed at line 1229 in InstanceManager : list[i].onSet(pojo, fieldName, result);.
I recommand to fix this by: list[i].onSet(null, fieldName, result); .
It is useful to distinguish the two case of call to onSet method because call on onGet method can have side effect to call th onSet method of the same handler and caused weird behavior.