I have a config class in Kotlin that has a nullabl...
# announcements
a
I have a config class in Kotlin that has a nullable boolean, and I'm trying to reference it from Java. I do that like this:
boolean isTransparent = config.isTransparentToolbar();
However, I get a lint warning that unboxing isTransparentToolbar() could cause an NPE. So I tried this:
config.isTransparentToolbar() != null && config.isTransparentToolbar()
But I still have the lint warning. Am I missing something?