X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fserial%2Fserver%2FServerBridge.java;fp=src%2Fbe%2Fnikiroo%2Futils%2Fserial%2Fserver%2FServerBridge.java;h=ea9fd1b3d3514439d813299b9a77128d6e4f6f9d;hb=f8f2afb491636143469bc978ba7687a1428513ba;hp=157b27ee9cc0df8c620a6163e5d0ae524d4b4e57;hpb=7d048df41aea44c07ea6e1ab774c627053f39dfa;p=fanfix.git diff --git a/src/be/nikiroo/utils/serial/server/ServerBridge.java b/src/be/nikiroo/utils/serial/server/ServerBridge.java index 157b27e..ea9fd1b 100644 --- a/src/be/nikiroo/utils/serial/server/ServerBridge.java +++ b/src/be/nikiroo/utils/serial/server/ServerBridge.java @@ -220,7 +220,7 @@ public class ServerBridge extends Server { * the data to trace */ private void trace(String prefix, String data) { - int size = data.length(); + int size = data == null ? 0 : data.length(); String ssize = size + " byte"; if (size > 1) { ssize = size + " bytes";