https://kotlinlang.org logo
#announcements
Title
# announcements
a

adam-mcneilly

02/07/2019, 2:52 PM
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?