mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* Server: fixed error on missing xmage.properties file settings on feedback receive;
This commit is contained in:
parent
34e4012540
commit
0df97e5d4b
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ public final class PropertiesUtil {
|
|||
|
||||
static {
|
||||
try (InputStream in = PropertiesUtil.class.getResourceAsStream("/xmage.properties")) {
|
||||
properties.load(in);
|
||||
if(in != null) {
|
||||
properties.load(in);
|
||||
} else {
|
||||
logger.warn("No xmage.properties were found");
|
||||
}
|
||||
} catch (FileNotFoundException fnfe) {
|
||||
logger.warn("No xmage.properties were found on classpath");
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in a new issue