fixed the cause of a NPE crash on the flight mode screen.
Merge branch 'master' of https://github.com/DroidPlanner/droidplanner into fix_ga_reported_crashes
fixed the cause of a NPE crash on the flight mode screen.
added null reference check to prevent ga reported crash bugs.
added null reference check to prevent ga reported crash bugs.
added null reference check.
added class check before casting.
Merge pull request #1073 from ne0fhyk/fix_ga_reported_crashes

Fix several crashes reported through Google Analytics