Don’t allow myString and myInt to be null in the f...
# announcements
a
Don’t allow myString and myInt to be null in the first place 😎
s
politely ask the compiler to disallow nulls for platform types 😛
a
I’ d still get rid of the nullability as early as possible instead of passing it down into functions I implemented
No?
s
That’s totally fair, I was just being specious - I think the snippet above wasn’t necessarily what they literally had in their code, so I didn’t rule out the possibility of their logic being called directly from some code they didn’t control
r
Working in android usually means handling null scenarios for views, especially in tests.