1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 16:56:04 +02:00

NPE in CDebuggerTab when attaching to a target.

This commit is contained in:
Mikhail Khodjaiants 2006-02-03 22:08:51 +00:00
parent dca057c82a
commit e609f306b4
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2006-02-03 Mikhail Khodjaiants
NPE in CDebuggerTab when attaching to a target.
* CDebuggerTab.java
2006-02-03 Mikhail Khodjaiants
The "ICDebuggerPage" interface and "AbstractCDebuggerPage" class are added.
All extensions of the "CDebuggerPage" extension point must implement "ICDebuggerPage".

View file

@ -244,10 +244,13 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), new String[]{mode})); //$NON-NLS-1$
return false;
}
String mainSymbol = fStopInMainSymbol.getText().trim();
if (fStopInMain.getSelection() && mainSymbol.length() == 0) {
setErrorMessage( LaunchMessages.getString("CDebuggerTab.Stop_on_startup_at_can_not_be_empty")); //$NON-NLS-1$
return false;
if ( fStopInMain != null && fStopInMainSymbol != null ) {
// The "Stop on startup at" field must not be empty
String mainSymbol = fStopInMainSymbol.getText().trim();
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) {
return false;