Skip to content

Commit

Permalink
Merge pull request #1008 from AzureAD/release/1.4.1
Browse files Browse the repository at this point in the history
Merge release/1.4.1 to master
  • Loading branch information
kreedula authored Apr 17, 2020
2 parents d5ca755 + 7a7f9e0 commit 097a3f2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
7 changes: 7 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-android/wiki

Version 1.4.1
- Hotfix release for Teams Dog Food.
- Fixes #1005
- Fixes common #871
- Limit silent thread pool to 5 threads.
- Picks up [email protected]

Version 1.4.0
- Fix for MSAL #920, 924, 935, 940
* Crash due to error receiving CANCEL broadcast
Expand Down
4 changes: 2 additions & 2 deletions msal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ dependencies {
transitive = false
}

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

distApi("com.microsoft.identity:common:2.0.2") {
distApi("com.microsoft.identity:common:2.0.2-hf1") {
transitive = false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.microsoft.identity.client.exception.MsalArgumentException;
import com.microsoft.identity.client.exception.MsalClientException;
import com.microsoft.identity.client.exception.MsalException;
import com.microsoft.identity.client.internal.AsyncResult;
Expand Down Expand Up @@ -61,6 +62,7 @@
import java.util.Map;

import static com.microsoft.identity.client.internal.MsalUtils.throwOnMainThread;
import static com.microsoft.identity.client.internal.MsalUtils.validateNonNullArg;

public class MultipleAccountPublicClientApplication extends PublicClientApplication
implements IMultipleAccountPublicClientApplication {
Expand Down Expand Up @@ -249,6 +251,16 @@ public void getAccount(@NonNull final String identifier,
private void getAccountInternal(@NonNull final String identifier,
@NonNull final GetAccountCallback callback,
@NonNull final String publicApiId) {

if(callback == null){
throw new IllegalArgumentException("callback cannot be null or empty");
}
try {
validateNonNullArg(identifier, "identifier");
} catch (MsalArgumentException e) {
callback.onError(e);
}

final String methodName = ":getAccount";

com.microsoft.identity.common.internal.logging.Logger.verbose(
Expand Down
2 changes: 1 addition & 1 deletion msal/versioning/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Wed Aug 01 15:24:11 PDT 2018
versionName=1.4.0
versionName=1.4.1
versionCode=0

0 comments on commit 097a3f2

Please sign in to comment.