if (log.isDetailed()) logDetailed("Called writeToSalesForce with " + data.iBufferPos + " out of " + meta.getBatchSizeInt());
if ( data.iBufferPos < meta.getBatchSizeInt()) {
ArrayList<String> fieldsToNull = new ArrayList<String>();
ArrayList<MessageElement> updatefields = new ArrayList<MessageElement>();
for ( int i = 0; i < data.nrfields; i++) {
<BUG>if(data.inputRowMeta.isNull(rowData, data.fieldnrs[i])) {

fieldsToNull.add(meta.getUpdateLookup()[i]);</BUG>
} else {
updatefields.add(SalesforceConnection.createMessageElement(meta.getUpdateLookup()[i], rowData[data.fieldnrs[i]], meta.getUseExternalId()[i]));

if (log.isDetailed()) logDetailed("Called writeToSalesForce with " + data.iBufferPos + " out of " + meta.getBatchSizeInt());
if ( data.iBufferPos < meta.getBatchSizeInt()) {
ArrayList<String> fieldsToNull = new ArrayList<String>();
ArrayList<MessageElement> updatefields = new ArrayList<MessageElement>();
for ( int i = 0; i < data.nrfields; i++) {
boolean valueIsNull=data.inputRowMeta.isNull(rowData, data.fieldnrs[i]);
if(valueIsNull){
fieldsToNull.add(meta.getUpdateLookup()[i]);
} else {
updatefields.add(SalesforceConnection.createMessageElement(meta.getUpdateLookup()[i], rowData[data.fieldnrs[i]], meta.getUseExternalId()[i]));
