Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 254921
Collapse All | Expand All

(-)src/org/eclipse/gmf/runtime/diagram/ui/tools/PopupBarTool.java (-1 / +5 lines)
Lines 100-106 Link Here
100
			((CreateRequest) theRequest).setLocation(thePoint);
100
			((CreateRequest) theRequest).setLocation(thePoint);
101
		}
101
		}
102
102
103
		Command theCmd = getHost().getCommand(theRequest);
103
		EditPart target = getHost().getTargetEditPart(theRequest);
104
		if (target == null){
105
			target = getHost();
106
		}
107
		Command theCmd = target.getCommand(theRequest);
104
		// if we return a cmd that cannot execute then later downstream an
108
		// if we return a cmd that cannot execute then later downstream an
105
		// NPE can be generated.
109
		// NPE can be generated.
106
		if (theCmd != null && theCmd.canExecute()) {
110
		if (theCmd != null && theCmd.canExecute()) {

Return to bug 254921