1
0
Fork 0
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:
David McKnight 2006-06-29 15:41:00 +00:00
parent ed7dc37c6e
commit 1daaecc113

View file

@ -272,8 +272,10 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.IConnectorService#setUserId(java.lang.String)
*/
final public void setUserId(String newId) {
if (!_userId.equals(newId)) {
final public void setUserId(String newId)
{
if (_userId == null || !_userId.equals(newId)) {
_userId = newId;
setDirty(true);
}