Skip to content

Commit 097a3f2

Browse files
authored
Merge pull request #1008 from AzureAD/release/1.4.1
Merge release/1.4.1 to master
2 parents d5ca755 + 7a7f9e0 commit 097a3f2

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-android/wiki
22

3+
Version 1.4.1
4+
- Hotfix release for Teams Dog Food.
5+
- Fixes #1005
6+
- Fixes common #871
7+
- Limit silent thread pool to 5 threads.
8+
9+
310
Version 1.4.0
411
- Fix for MSAL #920, 924, 935, 940
512
* Crash due to error receiving CANCEL broadcast

msal/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ dependencies {
144144
transitive = false
145145
}
146146

147-
snapshotApi(group: 'com.microsoft.identity', name: 'common', version: '2.0.2', changing: true)
147+
snapshotApi(group: 'com.microsoft.identity', name: 'common', version: '2.0.2-hf1', changing: true)
148148

149-
distApi("com.microsoft.identity:common:2.0.2") {
149+
distApi("com.microsoft.identity:common:2.0.2-hf1") {
150150
transitive = false
151151
}
152152
}

msal/src/main/java/com/microsoft/identity/client/MultipleAccountPublicClientApplication.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import androidx.annotation.NonNull;
3030
import androidx.annotation.Nullable;
3131

32+
import com.microsoft.identity.client.exception.MsalArgumentException;
3233
import com.microsoft.identity.client.exception.MsalClientException;
3334
import com.microsoft.identity.client.exception.MsalException;
3435
import com.microsoft.identity.client.internal.AsyncResult;
@@ -61,6 +62,7 @@
6162
import java.util.Map;
6263

6364
import static com.microsoft.identity.client.internal.MsalUtils.throwOnMainThread;
65+
import static com.microsoft.identity.client.internal.MsalUtils.validateNonNullArg;
6466

6567
public class MultipleAccountPublicClientApplication extends PublicClientApplication
6668
implements IMultipleAccountPublicClientApplication {
@@ -249,6 +251,16 @@ public void getAccount(@NonNull final String identifier,
249251
private void getAccountInternal(@NonNull final String identifier,
250252
@NonNull final GetAccountCallback callback,
251253
@NonNull final String publicApiId) {
254+
255+
if(callback == null){
256+
throw new IllegalArgumentException("callback cannot be null or empty");
257+
}
258+
try {
259+
validateNonNullArg(identifier, "identifier");
260+
} catch (MsalArgumentException e) {
261+
callback.onError(e);
262+
}
263+
252264
final String methodName = ":getAccount";
253265

254266
com.microsoft.identity.common.internal.logging.Logger.verbose(

msal/versioning/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#Wed Aug 01 15:24:11 PDT 2018
2-
versionName=1.4.0
2+
versionName=1.4.1
33
versionCode=0

0 commit comments

Comments
 (0)