11615 fix potential npe RCL_2_4
authordadubrow
Wed, 07 Jul 2010 11:42:30 -0500
branchRCL_2_4
changeset 1588 be9ca32c0fe2
parent 1586 648a0ec9ae3e
child 1589 f8fc355016ca
11615 fix potential npe
connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ConnectionStatusSelectorContribution.java
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ConnectionStatusSelectorContribution.java	Wed Jul 07 11:26:41 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ConnectionStatusSelectorContribution.java	Wed Jul 07 11:42:30 2010 -0500
@@ -23,6 +23,7 @@
 import java.util.Comparator;
 import java.util.List;
 
+import org.eclipse.jface.action.IContributionManager;
 import org.eclipse.jface.layout.GridDataFactory;
 import org.eclipse.jface.layout.GridLayoutFactory;
 import org.eclipse.swt.SWT;
@@ -518,7 +519,9 @@
 	 */
 	@Override
 	public void update() {
-		getParent().update(true);
+		IContributionManager parent = getParent();
+		if (parent != null)
+			parent.update(true);
 	}
 	
 	/**