mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
avoid NPE if mac is null
This commit is contained in:
parent
7fd0d1c5ca
commit
96057c6dcb
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user