File tree Expand file tree Collapse file tree
android-kit-base/src/main/java/com/mparticle/kits Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1553,12 +1553,12 @@ else if (hashedEmailMismatch && existingHashedEmail != null) {
15531553 if (emailMismatch ) {
15541554 identityBuilder .email (email );
15551555 }
1556- if (hashedEmailMismatch && kitConfiguration != null && kitConfiguration . getHashedEmailUserIdentityType () != null ) {
1556+ if (hashedEmailMismatch && kitConfiguration != null ) {
15571557 MParticle .IdentityType type ;
15581558 try {
15591559 type = MParticle .IdentityType .valueOf (kitConfiguration .getHashedEmailUserIdentityType ());
1560- } catch (IllegalArgumentException e ) {
1561- type = MParticle .IdentityType .Other ; // fallback
1560+ } catch (IllegalArgumentException | NullPointerException e ) {
1561+ type = MParticle .IdentityType .Other ; // fallback if null or invalid
15621562 }
15631563 identityBuilder .userIdentity (type , hashedEmail );
15641564 }
You can’t perform that action at this time.
0 commit comments