Index: src/factory.cc |
=================================================================== |
--- src/factory.cc (revision 1458) |
+++ src/factory.cc (working copy) |
@@ -536,7 +536,9 @@ |
// Copy the descriptors from the array. |
DescriptorWriter w(*result); |
for (DescriptorReader r(*array); !r.eos(); r.advance()) { |
- w.WriteFrom(&r); |
+ if (!r.IsNullDescriptor()) { |
+ w.WriteFrom(&r); |
+ } |
descriptor_count++; |
} |