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:
parent
f2d8b90495
commit
b2238a81f4
1 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue