Skip to content

AC-740 fixed NPE at syncedPatient activity#734

Merged
f4ww4z merged 1 commit intoopenmrs:masterfrom
dino-saurabh:AC-740
May 14, 2020
Merged

AC-740 fixed NPE at syncedPatient activity#734
f4ww4z merged 1 commit intoopenmrs:masterfrom
dino-saurabh:AC-740

Conversation

@dino-saurabh
Copy link
Collaborator

@dino-saurabh dino-saurabh commented May 11, 2020

Description of what I changed

SearchView takes up null value in dark mode of operation in absence of ActionBar,thus onCreateOptionsMenu never gets called so NPE was thrown.

Issue I worked on

JIRA Issue: https://issues.openmrs.org/browse/AC-740

Checklist: I completed these to help reviewers :)

  • My pull request only contains ONE single commit
    (the number above, next to the 'Commits' tab is 1).

  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)

  • All new and existing tests passed.

  • My pull request is based on the latest changes of the master branch.

@dino-saurabh dino-saurabh marked this pull request as ready for review May 11, 2020 10:05
Copy link
Contributor

@sanjulamadurapperuma sanjulamadurapperuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested a change

@dino-saurabh
Copy link
Collaborator Author

@f4ww4z please review!!

Copy link
Collaborator

@f4ww4z f4ww4z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LuGO0 Thanks, just small changes and confirmation needed here.

searchView takes up null value in dark mode of operation in absence of ActionBar,thus onCreateOptionsMenu never gets called
@codecov-io
Copy link

Codecov Report

Merging #734 into master will decrease coverage by 0.05%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #734      +/-   ##
==========================================
- Coverage   11.83%   11.78%   -0.06%     
==========================================
  Files         237      238       +1     
  Lines       10569    10615      +46     
  Branches     1017     1022       +5     
==========================================
  Hits         1251     1251              
- Misses       9237     9283      +46     
  Partials       81       81              
Impacted Files Coverage Δ
...ivities/syncedpatients/SyncedPatientsActivity.java 0.00% <0.00%> (ø)
...activities/dialog/CameraOrGalleryPickerDialog.java 0.00% <0.00%> (ø)
...ivities/addeditpatient/AddEditPatientFragment.java 0.00% <0.00%> (ø)
...patientdashboard/charts/PatientChartsFragment.java 0.00% <0.00%> (ø)
...patientdashboard/visits/PatientVisitsFragment.java 0.00% <0.00%> (ø)
...rs/mobile/activities/dialog/CustomDialogModel.java 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ea0a43...3469d61. Read the comment docs.

Copy link
Collaborator

@f4ww4z f4ww4z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @LuGO0

@f4ww4z f4ww4z merged commit 9b2059b into openmrs:master May 14, 2020
@f4ww4z
Copy link
Collaborator

f4ww4z commented May 14, 2020

@LuGO0 Add the ticket id to the commit message next time.

@dino-saurabh
Copy link
Collaborator Author

Okay @f4ww4z Ill do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants