from-java-to-kotlin
from-java-to-kotlin copied to clipboard
Update null-ii.java to be consistent with kotlin
The kotlin code assigns null to length if text is null. The old java code declared length in a different scope and never declared length when text was null.