Skip to content

Changes to nullable type returning

Compare
Choose a tag to compare
@g105b g105b released this 26 Nov 22:34
· 48 commits to master since this release
d85b65d

For all get* functions on InputDataGetter classes, there is now a slightly modified behavior. Apart from with getString, if the input data contains an empty string, it is represented by null, rather than the default for that type.

This means that if there is a number input on the page, and the user does not enter any data into it, calling getInt() on that field will now return null instead of 0 - properly representing an absence of data, without making any assumptions.

This is a minor release, due to minor backwards breaking changes.