Fixed handshake failed connecting with minecraft asset site

This commit is contained in:
huangyuhui
2017-01-26 15:07:57 +08:00
parent 574532f10c
commit 627e632120
19 changed files with 225 additions and 245 deletions

View File

@@ -19,6 +19,7 @@ package org.jackhuang.hellominecraft.lookandfeel;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import org.jackhuang.hellominecraft.util.C;
/**
@@ -85,9 +86,7 @@ public enum Theme {
public final Map<String, String> settings;
private Theme(String localizedName, Map<String, String> settings) {
if (settings == null)
throw new NullPointerException("Theme settings map should not be null.");
this.localizedName = localizedName;
this.settings = settings;
this.settings = Objects.requireNonNull(settings, "Theme settings map may not be null.");
}
}