diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-11 16:33:10 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-11 16:33:10 +0100 |
commit | 0fb313fbae12527b7d3f61605d9402109f443ac4 (patch) | |
tree | 4c72304a2aebda1b396c42ada46a86ba91ad8288 /lib | |
parent | dc1cdb1d12c7198fa46ad88a9632bfc8832aa796 (diff) | |
parent | ee29a8aa733fbf1a1666b2f85a9fd6ff19d777b3 (diff) | |
download | otp-0fb313fbae12527b7d3f61605d9402109f443ac4.tar.gz otp-0fb313fbae12527b7d3f61605d9402109f443ac4.tar.bz2 otp-0fb313fbae12527b7d3f61605d9402109f443ac4.zip |
Merge branch 'vd/tuple_constructor_bug/OTP-10819'
* vd/tuple_constructor_bug/OTP-10819:
fix bug in OtpErlangTuple constructor
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java index b3a1021992..b97af5cfa0 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java @@ -84,13 +84,13 @@ public class OtpErlangTuple extends OtpErlangObject implements Serializable, * if the array is empty (null) or contains null * elements. */ - public OtpErlangTuple(OtpErlangObject[] elems, final int start, + public OtpErlangTuple(final OtpErlangObject[] elems, final int start, final int count) { if (elems == null) { throw new java.lang.IllegalArgumentException( "Tuple content can't be null"); } else if (count < 1) { - elems = NO_ELEMENTS; + this.elems = NO_ELEMENTS; } else { this.elems = new OtpErlangObject[count]; for (int i = 0; i < count; i++) { |