mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Bug 474054 - Null Pointer Exception in "Properties for C/C++ Watchpoint"
when deselecting the "Range" check box Change-Id: I3ba0cac2bd3e8f9e52378d9d5cc0c25981369a6a
This commit is contained in:
parent
64243f4a4c
commit
93b7f29f9d
1 changed files with 9 additions and 2 deletions
|
@ -840,7 +840,9 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
|
||||
ICBreakpoint currentBp = getBreakpoint();
|
||||
if (!(currentBp instanceof ICFunctionBreakpoint) &&
|
||||
!(currentBp instanceof ICAddressBreakpoint)) {
|
||||
!(currentBp instanceof ICAddressBreakpoint) &&
|
||||
!(currentBp instanceof ICWatchpoint) &&
|
||||
!(currentBp instanceof ICEventBreakpoint)) {
|
||||
// Check for duplication of line breakpoints
|
||||
if (event.getProperty().equals(FieldEditor.VALUE)) {
|
||||
if (super.isValid()) {
|
||||
|
@ -877,7 +879,12 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
source = getPreferenceStore().getString(ICBreakpoint.SOURCE_HANDLE);
|
||||
}
|
||||
|
||||
int line = fLineEditor.getIntValue();
|
||||
// We only check duplicates for Breakpoints with lines numbers
|
||||
if (fLineEditor == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
int line = fLineEditor.getIntValue();
|
||||
|
||||
// Look for any breakpoint that has the same source file and line number as what
|
||||
// is currently being inputed. Careful not to compare with the current breakpoint
|
||||
|
|
Loading…
Add table
Reference in a new issue