Kotlin think that all things came from java are Nullable.
Read this http://confluence.jetbrains.net/display/Kotlin/Null-safety
To fix your problem look here http://blog.jetbrains.com/kotlin/using-external-annotations/
similar quation How do I access String.CASE_INSENSITIVE_ORDER from Kotlin? - #2 by B7W
Best regards, B7W