Kaydet (Commit) abd980d4 authored tarafından Noel Grandin's avatar Noel Grandin

cid#1326605, cid#1326604 BC: Bad casts of object references

Change-Id: I85fa5fd4671d749850af854a7d4ba934416d892b
üst 97da76a1
...@@ -28,8 +28,7 @@ public class _XProperty extends MultiMethodTest { ...@@ -28,8 +28,7 @@ public class _XProperty extends MultiMethodTest {
public void _getAsProperty() { public void _getAsProperty() {
Property prop = oObj.getAsProperty(); Property prop = oObj.getAsProperty();
boolean res = (prop.Name instanceof String); boolean res = (prop.Type != null);
res &= (prop.Type != null);
tRes.tested("getAsProperty()", res); tRes.tested("getAsProperty()", res);
} }
} }
\ No newline at end of file
...@@ -220,11 +220,8 @@ public class PentahoReportJob implements ReportJob ...@@ -220,11 +220,8 @@ public class PentahoReportJob implements ReportJob
val = reportFunction.getChildValues()[0]; val = reportFunction.getChildValues()[0];
} }
} }
if (val instanceof ContextLookup)
{
final ContextLookup context = (ContextLookup) val; final ContextLookup context = (ContextLookup) val;
name = context.getName(); name = context.getName();
}
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment