Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

NullPointerException

Đang mở
#33 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, java
Lĩnh vực
authentication, mobile

Hướng nghiên cứu

Bắt đầu với B2CConfiguration.java và luồng xác thực B2CModeFragment được mô tả trong báo cáo. Tái hiện luồng custom-policy trong Android Studio và kiểm tra giá trị Long null được ghi trong log. Được xem là hoàn tất khi luồng xác thực MSAL hoàn tất thành công mà không xảy ra NullPointerException.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
34
Fork
30
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure-Samples/ms-identity-android-java

Tất cả issue của Azure-Samples/ms-identity-android-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.