Skip to content

Commit

Permalink
Fixed logging attributes with null value
Browse files Browse the repository at this point in the history
This situation seems to happen when a characteristic is first read with a non-success status.
  • Loading branch information
dariuszseweryn committed Apr 2, 2020
1 parent d7f0ecc commit 8cddaa3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -19,7 +19,7 @@ private LoggerUtil() {
private final static char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();

public static String bytesToHex(byte[] bytes) {
if (bytes == null) return String.valueOf(null);
if (bytes == null) return "null";

if (!RxBleLog.getShouldLogAttributeValues()) {
return "[...]";
Expand Down

0 comments on commit 8cddaa3

Please sign in to comment.