mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 09:15:38 +02:00
null pointer check for user id
This commit is contained in:
parent
ed7dc37c6e
commit
1daaecc113
1 changed files with 4 additions and 2 deletions
|
@ -272,8 +272,10 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.rse.core.subsystems.IConnectorService#setUserId(java.lang.String)
|
* @see org.eclipse.rse.core.subsystems.IConnectorService#setUserId(java.lang.String)
|
||||||
*/
|
*/
|
||||||
final public void setUserId(String newId) {
|
final public void setUserId(String newId)
|
||||||
if (!_userId.equals(newId)) {
|
{
|
||||||
|
|
||||||
|
if (_userId == null || !_userId.equals(newId)) {
|
||||||
_userId = newId;
|
_userId = newId;
|
||||||
setDirty(true);
|
setDirty(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue