11615 fix potential npe
authordadubrow
Wed, 07 Jul 2010 11:40:40 -0500
changeset 1587 c7ab3cbf655a
parent 1585 0c61100dff19
child 1590 39ba239eeb5c
child 1591 e909ab661a7a
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 10:55:10 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ui/ConnectionStatusSelectorContribution.java	Wed Jul 07 11:40:40 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);
 	}
 	
 	/**