mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Avoid NPE
Initialize FeedbackLog earlier to avoid NPE Change-Id: I646944c68a7d092345def16060b2a4edd8c7dbef
This commit is contained in:
parent
73d00e68d8
commit
39cb0334d9
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user