mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACMOLE-363: Correct null pointer exception in String comparison; fix style issues.
This commit is contained in:
@@ -87,9 +87,9 @@ public class SQLServerAuthenticationProviderModule implements Module {
|
||||
// Look at the property to choose the correct driver.
|
||||
if (sqlServerDriver.equals(SQLServerEnvironment.SQLSERVER_DRIVER_JTDS))
|
||||
JdbcHelper.SQL_Server_jTDS.configure(binder);
|
||||
else if(sqlServerDriver.equals(SQLServerEnvironment.SQLSERVER_DRIVER_DATADIRECT))
|
||||
else if (sqlServerDriver.equals(SQLServerEnvironment.SQLSERVER_DRIVER_DATADIRECT))
|
||||
JdbcHelper.SQL_Server_DataDirect.configure(binder);
|
||||
else if(sqlServerDriver.equals(SQLServerEnvironment.SQLSERVER_DRIVER_MS))
|
||||
else if (sqlServerDriver.equals(SQLServerEnvironment.SQLSERVER_DRIVER_MS))
|
||||
JdbcHelper.SQL_Server_MS_Driver.configure(binder);
|
||||
else
|
||||
JdbcHelper.SQL_Server_2005_MS_Driver.configure(binder);
|
||||
|
@@ -195,7 +195,7 @@ public class SQLServerEnvironment extends JDBCEnvironment {
|
||||
|
||||
// Check driver property is one of the acceptable values.
|
||||
String driver = getProperty(SQLServerGuacamoleProperties.SQLSERVER_DRIVER);
|
||||
if (!(driver.equals(SQLSERVER_DRIVER_JTDS) ||
|
||||
if (driver != null && !(driver.equals(SQLSERVER_DRIVER_JTDS) ||
|
||||
driver.equals(SQLSERVER_DRIVER_DATADIRECT) ||
|
||||
driver.equals(SQLSERVER_DRIVER_MS) ||
|
||||
driver.equals(SQLSERVER_DRIVER_MS_2005)))
|
||||
|
Reference in New Issue
Block a user