Skip to content

Commit

Permalink
Fix ArrayStoreException (openhab#15320)
Browse files Browse the repository at this point in the history
Fixes openhab#15313

Partially reverts openhab#13967

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur authored Jul 28, 2023
1 parent 5732cca commit 9aab0f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public class BluetoothUtils {
*/
public static int[] toIntArray(byte[] value) {
int[] ret = new int[value.length];
System.arraycopy(value, 0, ret, 0, value.length);
for (int i = 0; i < value.length; i++) {
ret[i] = value[i];
}
return ret;
}

Expand Down

0 comments on commit 9aab0f7

Please sign in to comment.