Call module init helpers on debug builds

Reviewed By: SeyelentEco

Differential Revision: D8879847

fbshipit-source-id: 812ff0098fc8e3c85ab0a33df5e4ade919209583
This commit is contained in:
Austin Vandergon
2018-07-18 17:04:32 -07:00
committed by Facebook Github Bot
parent 0244f15dab
commit 5b0e742fe6
2 changed files with 13 additions and 5 deletions

View File

@@ -25,7 +25,8 @@ public final class AndroidSonarClient {
sConnectionThread = new SonarThread("SonarConnectionThread");
sConnectionThread.start();
final Context app = context.getApplicationContext();
final Context app =
context.getApplicationContext() == null ? context : context.getApplicationContext();
SonarClientImpl.init(
sSonarThread.getEventBase(),
sConnectionThread.getEventBase(),