Tags » bugs

Staring me in the face

I’ve been working on a feature in our Android app for a while now. Every now and then, we’d get an app crash due to a NullPointerException being thrown here: switch (mMeta.optString("type", null)) { case "a": return Type.A; case "b": return Type.B; case "": return Type.OTHER; default: return Type.UNKNOWN; } mMeta is guaranteed to exist,…

Continue →