Commit 0d611436 authored by Anna Malova's avatar Anna Malova Committed by Commit Bot

Return early in destroyModule if there is no module.

Bug: 924118
Change-Id: I19611361435e142e06440faa1a241c1a45dd76e5
Reviewed-on: https://chromium-review.googlesource.com/c/1433244Reviewed-by: default avatarMichael van Ouwerkerk <mvanouwerkerk@chromium.org>
Commit-Queue: Anna Malova <amalova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625641}
parent c137e2ae
......@@ -233,7 +233,7 @@ public class ModuleLoader {
}
public void destroyModule(@DestructionReason int reason) {
assert mModuleEntryPoint != null;
if (mModuleEntryPoint == null) return;
ModuleMetrics.recordDestruction(reason);
mModuleEntryPoint.onDestroy();
......
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