lib/gooddata/models/metadata/metric.rb in gooddata-0.6.4 vs lib/gooddata/models/metadata/metric.rb in gooddata-0.6.5
- old
+ new
@@ -106,10 +106,10 @@
end
end
def execute
res = GoodData::ReportDefinition.execute(:left => self)
- res[0][0]
+ res && res[0][0]
end
def expression
content['expression']
end