Skip to content

DRM-28: Map Location Page Crashes when DHIS2 Instance has no ORG Units - #66

Open
gitcliff wants to merge 1 commit into
openmrs:masterfrom
gitcliff:DRM-28
Open

DRM-28: Map Location Page Crashes when DHIS2 Instance has no ORG Units#66
gitcliff wants to merge 1 commit into
openmrs:masterfrom
gitcliff:DRM-28

Conversation

@gitcliff

Copy link
Copy Markdown

DRM-28: Map Location Page Crashes when DHIS2 Instance has no ORG Unit
link:https://issues.openmrs.org/browse/DRM-28
I set the DHIS2OrgUnits value to false and also checked the null value

@gitcliff

Copy link
Copy Markdown
Author

@samuelmale kindly please review

String referer = webRequest.getHeader("Referer");

if (dhis2OrgUnitCode.equals("")) {
if (dhis2OrgUnitCode == null || dhis2OrgUnitCode.isEmpty()) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@gitcliff , can you take a look at the java convestions here https://wiki.openmrs.org/display/docs/Java+Conventions.

dhis2OrgUnitCode == null || dhis2OrgUnitCode.isEmpty() , this is discouraged. instead take use of the apache commons string utils library

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.

2 participants