# HG changeset patch # User Ed Swartz # Date 1272048922 18000 # Node ID d2ec5b43969ef3ad3e24dbb79576ac2b1638a24c # Parent 12890c0d8bfd8dfb4f1e93e730fcb9138bca6930 Fix NPE diff -r 12890c0d8bfd -r d2ec5b43969e connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ClientServiceSiteUI2.java --- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ClientServiceSiteUI2.java Fri Apr 23 13:46:26 2010 -0500 +++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ClientServiceSiteUI2.java Fri Apr 23 13:55:22 2010 -0500 @@ -95,7 +95,7 @@ public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection) event.getSelection(); String connection = (String) selection.getFirstElement(); - if (!connection.equals(ClientServiceSiteUI2.this.connection)) { + if (connection != null && !connection.equals(ClientServiceSiteUI2.this.connection)) { ClientServiceSiteUI2.this.connection = connection; fireConnectionSelected(); }