the problem here is the annotation in the method, ...
# android
m
the problem here is the annotation in the method, it defines the return type as Drawable?, so if you don't want to spread null checks across the code, you would have to wrap the getDrawable method and control the null possibility there, returning a default drawable.