@icampus
Works as specified.
Reproduced the error:
in a xml view a field with default = 0. Called the funktion getAttribute(fieldname, default) returned null. After the patch the result was '0'.
tested @icampus
1. Reproduced Error on a basic component (default value "0" of a field returns null instead of "0")
2. Applied the patch
Result: Fixed the Problem
@test success as reported by @widesys #8381 (comment)