Avoid NPE

Initialize FeedbackLog earlier to avoid NPE

Change-Id: I646944c68a7d092345def16060b2a4edd8c7dbef
This commit is contained in:
Kurt Partridge 2013-03-25 17:33:43 -07:00
parent 73d00e68d8
commit 39cb0334d9

View file

@ -406,6 +406,9 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
requestIndicatorRedraw();
mStatistics.reset();
checkForEmptyEditor();
if (mFeedbackLogBuffer == null) {
resetFeedbackLogging();
}
if (!isAllowedToLog()) {
// Log.w(TAG, "not in usability mode; not logging");
return;
@ -439,9 +442,6 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
}
};
}
if (mFeedbackLogBuffer == null) {
resetFeedbackLogging();
}
}
private void resetFeedbackLogging() {