mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUAC-933: Do not set parent identifier to the string "null".
This commit is contained in:
@@ -103,7 +103,13 @@ public class MySQLConnection extends AbstractConnection {
|
||||
*/
|
||||
public void setParentID(Integer parentID) {
|
||||
this.parentID = parentID;
|
||||
this.setParentIdentifier(String.valueOf(parentID));
|
||||
|
||||
// Translate to string identifier
|
||||
if (parentID != null)
|
||||
this.setParentIdentifier(String.valueOf(parentID));
|
||||
else
|
||||
this.setParentIdentifier(null);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -124,7 +124,13 @@ public class MySQLConnectionGroup extends AbstractConnectionGroup {
|
||||
*/
|
||||
public void setParentID(Integer parentID) {
|
||||
this.parentID = parentID;
|
||||
this.setParentIdentifier(String.valueOf(parentID));
|
||||
|
||||
// Translate to string identifier
|
||||
if (parentID != null)
|
||||
this.setParentIdentifier(String.valueOf(parentID));
|
||||
else
|
||||
this.setParentIdentifier(null);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user