Skip to content

Commit

Permalink
Fix merge of protocol buffers branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Brandhof committed Feb 2, 2015
1 parent 35f1487 commit de8d658
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -63,12 +63,18 @@ private void recursiveWriteComponent(BatchResource batchResource, BatchOutputWri

// non-null fields
builder.setRef(batchResource.batchId());
builder.setSnapshotId(batchResource.snapshotId());
builder.setUuid(r.getUuid());
builder.setType(getType(r));

// protocol buffers does not accept null values

String uuid = r.getUuid();
if (uuid != null) {
builder.setUuid(uuid);
}
Integer sid = batchResource.snapshotId();
if (sid != null) {
builder.setSnapshotId(sid);
}
if (ResourceUtils.isFile(r)) {
builder.setIsTest(ResourceUtils.isUnitTestClass(r));
}
Expand Down

0 comments on commit de8d658

Please sign in to comment.