Fixed NullPointerException
This commit is contained in:
@@ -59,6 +59,7 @@ public abstract class ProtocolWebServer {
|
||||
/**
|
||||
* The configuration for the web server.
|
||||
*/
|
||||
@Getter
|
||||
private final WebServerConfig serverConfig;
|
||||
/**
|
||||
* The reference to the ProtocolBridge Object
|
||||
|
||||
@@ -128,7 +128,7 @@ public final class SessionManager {
|
||||
this.login = login;
|
||||
this.ip = ip;
|
||||
this.userAgent = userAgent;
|
||||
this.expiresAt = System.currentTimeMillis() + (long) protocolWebServer.getConfigurationManager().getInt("sessionexpireminutes") * 60 * 1000;
|
||||
this.expiresAt = System.currentTimeMillis() + (long) protocolWebServer.getServerConfig().getSessionExpiration() * 60 * 1000;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -158,7 +158,7 @@ public final class SessionManager {
|
||||
* @throws IOException If an I/O error occurs.
|
||||
*/
|
||||
void refresh(ProtocolWebServer protocolWebServer) throws IOException {
|
||||
this.expiresAt = System.currentTimeMillis() + (long) protocolWebServer.getConfigurationManager().getInt("sessionexpireminutes") * 60 * 1000;
|
||||
this.expiresAt = System.currentTimeMillis() + (long) protocolWebServer.getServerConfig().getSessionExpiration() * 60 * 1000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user