This patch fixes the problem. How is anyone's guess, but we'll simplify all this code in the future.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@740161
13f79535-47bb-0310-9956-
ffa450edef68
# this will set our field default values
method(:struct_initialize).call()
# now give it to the exception
- self.class.send(:class_variable_get, :'@@__thrift_struct_real_initialize').bind(self).call(*args, &block)
+ self.class.send(:class_variable_get, :'@@__thrift_struct_real_initialize').bind(self).call(*args, &block) if args.size > 0
# self.class.instance_method(:initialize).bind(self).call(*args, &block)
end
end