Checking for Android null-type