mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 13:55:39 +02:00
Bug 478549 - Add null pointer check
Change-Id: Ic7bf5e217d8def75054a86c0bccde5a3669f5d32 Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
e1651ff166
commit
4f4bfbfca8
1 changed files with 12 additions and 10 deletions
|
@ -243,17 +243,19 @@ public class ConnectionsPreferencePage extends PreferencePage implements IWorkbe
|
||||||
}
|
}
|
||||||
performOk();
|
performOk();
|
||||||
}
|
}
|
||||||
IRemoteUIConnectionWizard wizard = fUIConnectionManager.getConnectionWizard(getShell());
|
if (fUIConnectionManager != null) {
|
||||||
if (wizard != null) {
|
IRemoteUIConnectionWizard wizard = fUIConnectionManager.getConnectionWizard(getShell());
|
||||||
wizard.setConnectionName(initialConnectionName());
|
if (wizard != null) {
|
||||||
wizard.setInvalidConnectionNames(invalidConnectionNames());
|
wizard.setConnectionName(initialConnectionName());
|
||||||
IRemoteConnectionWorkingCopy conn = wizard.open();
|
wizard.setInvalidConnectionNames(invalidConnectionNames());
|
||||||
if (conn != null) {
|
IRemoteConnectionWorkingCopy conn = wizard.open();
|
||||||
fWorkingCopies.put(conn.getName(), conn);
|
if (conn != null) {
|
||||||
if (!fConnectionViewer.getTable().isDisposed()) {
|
fWorkingCopies.put(conn.getName(), conn);
|
||||||
fConnectionViewer.refresh();
|
if (!fConnectionViewer.getTable().isDisposed()) {
|
||||||
|
fConnectionViewer.refresh();
|
||||||
|
}
|
||||||
|
fIsDirty = true;
|
||||||
}
|
}
|
||||||
fIsDirty = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue