You are attempting to concatenate a value to null
. This is governed by "String Conversion", which occurs when one operand is a String
, and that is covered by the JLS, Section 5.1.11:
Now only reference values need to be considered:
- If the reference is null, it is converted to the string "null" (four ASCII characters n, u, l, l).