Skip to content

Commit

Permalink
Fixed class comparison in ServiceContext and upated DataExportReportO…
Browse files Browse the repository at this point in the history
…bject to properly check for a null location in generatePatientSet(EvaluationContext context) method - TRUNK-3959
  • Loading branch information
gordonbr authored and wluyima committed Jun 11, 2013
1 parent 20d9055 commit e76fc6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -816,7 +816,10 @@ public void setModuleService(List<Object> params) {
if (log.isDebugEnabled()) {
log.debug("cls2 classloader: " + cls.getClass().getClassLoader() + " uid: "
+ cls.getClass().getClassLoader().hashCode());
log.debug("cls==cls2: " + String.valueOf(cls == cls));
//pay attention that here, cls = Class.forName(classString), the system class loader and
//cls2 is the openmrs class loader, like above.
log.debug("cls==cls2: " + String.valueOf(cls ==
OpenmrsClassLoader.getInstance().loadClass(classString)));
}
}
catch (Exception e) { /*pass*/}
Expand Down
Expand Up @@ -191,8 +191,8 @@ public Cohort generatePatientSet(EvaluationContext context) {
if (getPatientIds() != null && getPatientIds().size() > 0) {
cohort = new Cohort(getPatientIds());
}
if (location != null && !location.equals("")) {

if (location != null) {
cohort = intersectFast(cohort, pss.getPatientsHavingLocation(getLocation()));
}

Expand Down

0 comments on commit e76fc6b

Please sign in to comment.