mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACMOLE-363: Correct null pointer exception in String comparison; fix style issues.
This commit is contained in:
@@ -195,7 +195,7 @@ public class SQLServerEnvironment extends JDBCEnvironment {
|
|||||||
|
|
||||||
// Check driver property is one of the acceptable values.
|
// Check driver property is one of the acceptable values.
|
||||||
String driver = getProperty(SQLServerGuacamoleProperties.SQLSERVER_DRIVER);
|
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_DATADIRECT) ||
|
||||||
driver.equals(SQLSERVER_DRIVER_MS) ||
|
driver.equals(SQLSERVER_DRIVER_MS) ||
|
||||||
driver.equals(SQLSERVER_DRIVER_MS_2005)))
|
driver.equals(SQLSERVER_DRIVER_MS_2005)))
|
||||||
|
Reference in New Issue
Block a user