avoid NPE if mac is null

This commit is contained in:
Anton Keks 2021-02-15 21:58:23 +02:00
parent 7fd0d1c5ca
commit 96057c6dcb

View File

@ -39,7 +39,7 @@ public abstract class MACFetcher extends AbstractFetcher {
}
String replaceSeparator(String mac) {
return mac.replace(":", separator);
return mac != null ? mac.replace(":", separator) : null;
}
private static String addLeadingZeroes(String mac) {