1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

[252691] - Fixed bug which caused the action to always be enabled.

This commit is contained in:
Pawel Piech 2008-10-30 14:35:44 +00:00
parent 5db19ce9af
commit f7eb3abbdd

View file

@ -118,8 +118,10 @@ abstract public class RetargetDebugContextAction implements IWorkbenchWindowActi
Object object = ss.getFirstElement();
if (object instanceof IAdaptable) {
fTargetAdapter = getAdapter((IAdaptable) object);
fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext));
return;
if (fTargetAdapter != null) {
fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext));
return;
}
}
}
}