Commit 3b8ad9af authored by maxbogue's avatar maxbogue Committed by Commit bot

Fix NPE in ApplicationStatus.

The return line being outside the synchronized block allowed the cached
state to be reset to null before it was calculated.

BUG=470966

Review URL: https://codereview.chromium.org/1031413005

Cr-Commit-Position: refs/heads/master@{#322479}
parent 50059137
...@@ -309,9 +309,8 @@ public class ApplicationStatus { ...@@ -309,9 +309,8 @@ public class ApplicationStatus {
if (sCachedApplicationState == null) { if (sCachedApplicationState == null) {
sCachedApplicationState = determineApplicationState(); sCachedApplicationState = determineApplicationState();
} }
return sCachedApplicationState.intValue();
} }
return sCachedApplicationState.intValue();
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment