Skip to content

Commit

Permalink
Avoid accessing a nil pointer while running update_swissindex_pharma
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Oct 29, 2013
1 parent 515ea31 commit 4d44d64
Show file tree
Hide file tree
Showing 3 changed files with 1,070 additions and 809 deletions.
3 changes: 2 additions & 1 deletion src/util/oddbapp.rb
Expand Up @@ -120,10 +120,11 @@ def delete(pointer)
}
end
def update(pointer, values, origin=nil)
#puts [__FILE__,__LINE__,"update(#{pointer}, #{values})"].join(':')
$stdout.puts [__FILE__,__LINE__,"update(#{pointer}, #{values})"].join(':')
@last_update = Time.now()
item = nil
failsafe(ODDB::Persistence::UninitializedPathError, nil) {
next unless pointer
item = pointer.issue_update(self, values, origin)
updated(item) unless(item.nil?)
}
Expand Down

0 comments on commit 4d44d64

Please sign in to comment.