NullPointerException
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, java
- Domain
- authentication, mobile
Research direction
Start with B2CConfiguration.java and the B2CModeFragment authentication flow described in the report. Reproduce the custom-policy flow in Android Studio and inspect the logged null Long value. Done means the MSAL authentication flow completes successfully without the NullPointerException.
Written by the indexing model from the issue text.
Description
Please provide us with the following information:
This issue is for a: (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
git clone project, load in Android Studio, update B2CConfiguration.java (Custom Policy), build/run the app in Android Studio, select B2C, run flow
Any log messages given by the failure
2020-04-09 15:03:25.392 9962-9962/com.azuresamples.msalandroidapp D/B2CModeFragment: Authentication failed: com.microsoft.identity.client.exception.MsalClientException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference
This is the same issue as observed in another MSAL sample https://github.com/Azure-Samples/ms-identity-android-native/issues/15
Expected/desired behavior
MSAL auth to work.
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Win10
Versions
10.0.18362.720
Mention any other details that might be useful
Android Studio 3.6.2
Thanks! We'll be in touch soon.
- Dominant language
- Java
- Stars
- 34
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure-Samples/ms-identity-android-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Azure-Samples/ms-identity-android-java#57 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
ADAL packages Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
All issues in Azure-Samples/ms-identity-android-java
Similar issues
-
area/plugin
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
kestra-io/plugin-kestra#190 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/rocketmq-dashboard#5064 ·