summaryrefslogtreecommitdiff
path: root/reportbuilder
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-14 09:09:22 +0200
committerNoel Grandin <noel@peralex.com>2015-10-14 09:55:11 +0200
commitabd980d4ec16fed637d3fce580e7ae728f69d564 (patch)
tree698887f8030a4114bdce50d54427c364b609fc11 /reportbuilder
parent97da76a17dd6addfd3213f196f4454e1d5cee417 (diff)
cid#1326605, cid#1326604 BC: Bad casts of object references
Change-Id: I85fa5fd4671d749850af854a7d4ba934416d892b
Diffstat (limited to 'reportbuilder')
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/PentahoReportJob.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/PentahoReportJob.java b/reportbuilder/java/org/libreoffice/report/pentaho/PentahoReportJob.java
index 9e0e429b0b92..6c598556da7d 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/PentahoReportJob.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/PentahoReportJob.java
@@ -220,11 +220,8 @@ public class PentahoReportJob implements ReportJob
val = reportFunction.getChildValues()[0];
}
}
- if (val instanceof ContextLookup)
- {
- final ContextLookup context = (ContextLookup) val;
- name = context.getName();
- }
+ final ContextLookup context = (ContextLookup) val;
+ name = context.getName();
break;
}
}