This repository was archived by the owner on Dec 23, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
src/main/java/org/graylog/plugins/usagestatistics Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1414
1515 <groupId >org.graylog.plugins</groupId >
1616 <artifactId >usage-statistics</artifactId >
17- <version >1.0.6 </version >
17+ <version >1.0.7-SNAPSHOT </version >
1818 <packaging >jar</packaging >
1919
2020 <name >Graylog Usage Statistics Plugin</name >
Original file line number Diff line number Diff line change 2424import java .util .Set ;
2525
2626public class UsageStatsMetaData implements PluginMetaData {
27- public static final Version VERSION = new Version (1 , 0 , 6 );
27+ public static final Version VERSION = new Version (1 , 0 , 7 );
2828
2929 @ Override
3030 public String getUniqueId () {
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ public abstract class MacAddress {
3030 private static final Pattern PATTERN = Pattern .compile ("[0-9a-f]{2}([:-][0-9a-f]{2}){5}" , Pattern .CASE_INSENSITIVE );
3131
3232 public static MacAddress create (String macAddress ) {
33+ if (macAddress == null || macAddress .isEmpty ()) {
34+ return EMPTY ;
35+ }
3336 checkArgument (PATTERN .matcher (macAddress ).matches ());
3437
3538 return new AutoValue_MacAddress (macAddress .substring (0 , 8 ));
You can’t perform that action at this time.
0 commit comments