summaryrefslogtreecommitdiff
path: root/reach_reports
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-09-14 17:12:16 +0200
committermguetlein <martin.guetlein@gmail.com>2010-09-14 17:12:16 +0200
commit75d9552615dc88d30496df3aa86bceb961711b36 (patch)
treec3a4d8ce5f4ad76e56df6170fd4d2d4d0c695f06 /reach_reports
parent0b00c0857bf1a0e335aba9453b700bbd8a51444f (diff)
check dataset not null
Diffstat (limited to 'reach_reports')
-rw-r--r--reach_reports/reach_service.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/reach_reports/reach_service.rb b/reach_reports/reach_service.rb
index 1cc1466..3d8b73e 100644
--- a/reach_reports/reach_service.rb
+++ b/reach_reports/reach_service.rb
@@ -234,12 +234,10 @@ module ReachReports
r.qsar_miscellaneous.attachment_validation_data << AttachmentValidationData.new(
{ :description => d.title,
:filetype => "owl-dl",
- :url => data_uri} )
+ :url => data_uri} ) if d
end
-
r.save
-
end
# def self.get_report_content(type, id, *keys)