Skip to content

Commit 186f41a

Browse files
rpdomeCopilot
andauthored
Update testapps/testapp/src/main/java/com/microsoft/identity/client/testapp/ConcurrentAcquireTokenExecutor.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 85f1ca2 commit 186f41a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

testapps/testapp/src/main/java/com/microsoft/identity/client/testapp/ConcurrentAcquireTokenExecutor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,17 @@ public void execute(
147147
final RequestOptions requestOptions,
148148
final IUIUpdateCallback callback) {
149149

150+
final Context applicationContext = context.getApplicationContext() != null
151+
? context.getApplicationContext()
152+
: context;
153+
150154
new Thread(() -> {
151155
final RequestOptions scopedOptions = RequestOptions.withDifferentScopes(
152156
requestOptions,
153157
getScopeForThread(mThreadId));
154158

155159
MsalWrapper.create(
156-
context,
160+
applicationContext,
157161
Constants.getResourceIdFromConfigFile(requestOptions.getConfigFile()),
158162
new INotifyOperationResultCallback<MsalWrapper>() {
159163
@Override

0 commit comments

Comments
 (0)