Avoid NPE
Initialize FeedbackLog earlier to avoid NPE Change-Id: I646944c68a7d092345def16060b2a4edd8c7dbef
This commit is contained in:
parent
73d00e68d8
commit
39cb0334d9
1 changed files with 3 additions and 3 deletions
|
@ -406,6 +406,9 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
requestIndicatorRedraw();
|
requestIndicatorRedraw();
|
||||||
mStatistics.reset();
|
mStatistics.reset();
|
||||||
checkForEmptyEditor();
|
checkForEmptyEditor();
|
||||||
|
if (mFeedbackLogBuffer == null) {
|
||||||
|
resetFeedbackLogging();
|
||||||
|
}
|
||||||
if (!isAllowedToLog()) {
|
if (!isAllowedToLog()) {
|
||||||
// Log.w(TAG, "not in usability mode; not logging");
|
// Log.w(TAG, "not in usability mode; not logging");
|
||||||
return;
|
return;
|
||||||
|
@ -439,9 +442,6 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (mFeedbackLogBuffer == null) {
|
|
||||||
resetFeedbackLogging();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resetFeedbackLogging() {
|
private void resetFeedbackLogging() {
|
||||||
|
|
Loading…
Reference in a new issue