2 fields with onleave method

I have 2 fields:
field 1: postcode (TEXT)
field 2: plaats (TEXT)

Those 2 fields are place right next to eachother.
Both fields have on Onleave-method

field 1: postcode = postcode.toUpperCase();
field 2: plaats = plaats.toUpperCase();

Create a new record. When I fill in field 1 and than leave field 1, for some reason the method of field 2 is triggered resulting in:

Error while executing method with name capitalize_plaats, id 2155
Cannot convert null to an object

This make sense, because I did’nt fill in this field yet.
How is it possible that the method of field2 is triggered before I entered it??

Strange. Are you sure you have tied the correct method to the correct field? Also double check the contents of your methods. I’ve done some extensive testing with RC3 and can’t reproduce the problem you mention. If you CAN reproduce it please email a small solution that shows the problem to: support@servoy.com with a short description

Interestingly enough this appears to work well on linux and incorrect on windows. Unfortunately its a Java swing issue that is beyond our control. Using onChange is recommended in this situation.

This is fixed in the next build/release (after RC4)