aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/java_src/com
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2013-02-01 09:17:16 +0100
committerVlad Dumitrescu <[email protected]>2013-02-01 09:57:18 +0100
commitee29a8aa733fbf1a1666b2f85a9fd6ff19d777b3 (patch)
treedcedda6e0bad3b6e66e87c776dbc468ceb9cb71d /lib/jinterface/java_src/com
parent68b804f34d4ec420d86953e3f519179a40fbee8f (diff)
downloadotp-ee29a8aa733fbf1a1666b2f85a9fd6ff19d777b3.tar.gz
otp-ee29a8aa733fbf1a1666b2f85a9fd6ff19d777b3.tar.bz2
otp-ee29a8aa733fbf1a1666b2f85a9fd6ff19d777b3.zip
fix bug in OtpErlangTuple constructor
The elems field would remain unitialized if the count parameter is zero in constructor
Diffstat (limited to 'lib/jinterface/java_src/com')
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java4
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++) {