Skip to content

Commit

Permalink
Check if option has KEY before adding to human readable values list
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-on committed Sep 18, 2019
1 parent d098b42 commit f3d8085
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ private static void createObservation(Event e, JSONObject jsonObject, String val
entityIdVal = getString(jsonObject, OPENMRS_ENTITY_ID);
entityParentVal = "";
vall.add(option.getString(OPENMRS_ENTITY_ID));
humanReadableValues.add(option.getString(KEY));
if (option.has(KEY)) {
humanReadableValues.add(option.getString(KEY));
}
}
}
} catch (JSONException e1) {
Expand Down

0 comments on commit f3d8085

Please sign in to comment.