mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
NPE in CDebuggerTab when attaching to a target.
This commit is contained in:
parent
dca057c82a
commit
e609f306b4
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2006-02-03 Mikhail Khodjaiants
|
||||||
|
NPE in CDebuggerTab when attaching to a target.
|
||||||
|
* CDebuggerTab.java
|
||||||
|
|
||||||
2006-02-03 Mikhail Khodjaiants
|
2006-02-03 Mikhail Khodjaiants
|
||||||
The "ICDebuggerPage" interface and "AbstractCDebuggerPage" class are added.
|
The "ICDebuggerPage" interface and "AbstractCDebuggerPage" class are added.
|
||||||
All extensions of the "CDebuggerPage" extension point must implement "ICDebuggerPage".
|
All extensions of the "CDebuggerPage" extension point must implement "ICDebuggerPage".
|
||||||
|
|
|
@ -244,10 +244,13 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
|
||||||
setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), new String[]{mode})); //$NON-NLS-1$
|
setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), new String[]{mode})); //$NON-NLS-1$
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String mainSymbol = fStopInMainSymbol.getText().trim();
|
if ( fStopInMain != null && fStopInMainSymbol != null ) {
|
||||||
if (fStopInMain.getSelection() && mainSymbol.length() == 0) {
|
// The "Stop on startup at" field must not be empty
|
||||||
setErrorMessage( LaunchMessages.getString("CDebuggerTab.Stop_on_startup_at_can_not_be_empty")); //$NON-NLS-1$
|
String mainSymbol = fStopInMainSymbol.getText().trim();
|
||||||
return false;
|
if (fStopInMain.getSelection() && mainSymbol.length() == 0) {
|
||||||
|
setErrorMessage( LaunchMessages.getString("CDebuggerTab.Stop_on_startup_at_can_not_be_empty")); //$NON-NLS-1$
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (super.isValid(config) == false) {
|
if (super.isValid(config) == false) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue