Skip to content

Commit

Permalink
fix BinaryDecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
knaum committed Sep 22, 2017
1 parent 7181652 commit 19c21e5
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@

package org.opcfoundation.ua.encoding.binary;

import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.ConnectException;
import java.net.SocketException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.ClosedChannelException;
import java.nio.charset.Charset;
import java.util.UUID;

import org.opcfoundation.ua.builtintypes.DataValue;
import org.opcfoundation.ua.builtintypes.DateTime;
import org.opcfoundation.ua.builtintypes.DiagnosticInfo;
Expand Down Expand Up @@ -55,6 +41,20 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.ConnectException;
import java.net.SocketException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.ClosedChannelException;
import java.nio.charset.Charset;
import java.util.UUID;

/**
* Decodes builtinTypes, structures, enumerations and messages from byte buffer.
* + Arrays
Expand Down Expand Up @@ -1443,7 +1443,7 @@ public Variant getVariant(String fieldName)
* shall stop and raise a Bad_DecodingError", therefore we must check it here.
*/
if(hasDimensionLengths){
long total = 0;
long total = 1;
for(int i : dims){
total = total * i;
}
Expand Down

0 comments on commit 19c21e5

Please sign in to comment.