Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Null check on a glean timer (#3915)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored Dec 14, 2020
1 parent 3f98edb commit 585abf1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ public static void stopImmersive() {

public static void openWindowEvent(int windowId) {
GleanTimerId timerId = Windows.INSTANCE.duration().start();
windowLifeTimerId.put(windowId, timerId);
if (timerId != null) {
windowLifeTimerId.put(windowId, timerId);
}
}

public static void closeWindowEvent(int windowId) {
Expand Down

0 comments on commit 585abf1

Please sign in to comment.