Skip to content

Commit 1f4fa23

Browse files
committed
Fix initialization of Proxy instance in fromFile and fromBytes.
1 parent 4510a11 commit 1f4fa23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

matlab/src/matlab/+arrow/+io/+ipc/RecordBatchStreamReader.m

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030
function obj = fromBytes(bytes)
3131
args = struct(Bytes=bytes, Type="Bytes");
3232
proxyName = "arrow.io.ipc.proxy.RecordBatchStreamReader";
33-
obj.Proxy = arrow.internal.proxy.create(proxyName, args);
33+
proxy = arrow.internal.proxy.create(proxyName, args);
34+
obj = arrow.io.ipc.RecordBatchStreamReader(proxy);
3435
end
3536

3637
function obj = fromFile(filename)
3738
args = struct(Filename=filename, Type="File");
3839
proxyName = "arrow.io.ipc.proxy.RecordBatchStreamReader";
39-
obj.Proxy = arrow.internal.proxy.create(proxyName, args);
40+
proxy = arrow.internal.proxy.create(proxyName, args);
41+
obj = arrow.io.ipc.RecordBatchStreamReader(proxy);
4042
end
4143
end
4244

0 commit comments

Comments
 (0)