1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 395873 - [breakpoints] breakpointContribution conditional contribution doesn't check for missing property

Change-Id: If75c23f393c1fc983de1ddd4ddea3b003c1ec1b3
Reviewed-on: https://git.eclipse.org/r/9050
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
Pawel Piech 2012-12-05 15:11:29 -08:00 committed by Elena Laskavaia
parent f2d8b90495
commit b2238a81f4

View file

@ -124,13 +124,10 @@ class DefaultCBreakpointUIContribution implements ICBreakpointsUIContribution {
@Override
public boolean isApplicable(Map<String, Object> properties) {
for (Object key : properties.keySet()) {
String value = conditions.get(key);
if (value != null) {
String realValue = (String) properties.get(key);
if (!value.equals(realValue)) {
return false;
}
for (Object key : conditions.keySet()) {
Object bpValue = properties.get(key);
if ( bpValue == null || !bpValue.equals(conditions.get(key)) ) {
return false;
}
}
return true;