From 7217dff85a9245cbb62dfef98e0f282a3adbcf72 Mon Sep 17 00:00:00 2001 From: Arthur Benemann Date: Wed, 13 Aug 2014 09:10:53 -0700 Subject: [PATCH] NullPointer Exception fix on Editor When opening the editor with a loaded mission a null pointer exception was being generated. This fixes the problem. --- .../org/droidplanner/android/fragments/EditorToolsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android/src/org/droidplanner/android/fragments/EditorToolsFragment.java b/Android/src/org/droidplanner/android/fragments/EditorToolsFragment.java index 6f69b11876..2f18bca9d9 100644 --- a/Android/src/org/droidplanner/android/fragments/EditorToolsFragment.java +++ b/Android/src/org/droidplanner/android/fragments/EditorToolsFragment.java @@ -46,7 +46,7 @@ public interface OnEditorToolSelected { private OnEditorToolSelected listener; private RadioGroup mEditorRadioGroup; - private EditorTools tool; + private EditorTools tool = EditorTools.NONE; private MissionProxy mMissionProxy; @Override