Commit a3b6c73f authored by Finn Herzfeld's avatar Finn Herzfeld 🌵

handle some unexpected nulls

parent 28cda0b7
Pipeline #3940 passed with stages
in 4 minutes and 10 seconds
......@@ -59,7 +59,7 @@ class JsonMessageEnvelope {
if (envelope.hasSource()) {
source = sourceAddress.getNumber();
} else {
} else if(c != null) {
source = c.getSender();
}
......
......@@ -49,6 +49,9 @@ public class Util {
}
public static String redact(String in) {
if(in == null) {
return "[null]";
}
if(in.length() < 2) {
return new String(new char[in.length()]).replace("\0", "*");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment