Skip to content

Commit

Permalink
Fixed issue yatish27#59: Nils being inserted into updates that don't …
Browse files Browse the repository at this point in the history
…have them.
  • Loading branch information
David Massad committed Apr 27, 2017
1 parent 7423050 commit dc88a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/salesforce_bulk_api/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def create_sobject(keys, r)
sobject_xml += r[k].to_s
end
sobject_xml += "</#{k}>"
elsif @send_nulls && !@no_null_list.include?(k)
elsif @send_nulls && !@no_null_list.include?(k) && r.key?(k)
sobject_xml += "<#{k} xsi:nil=\"true\"/>"
end
end
Expand Down

0 comments on commit dc88a4a

Please sign in to comment.