mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixed NPE when message field is disabled
This commit is contained in:
parent
c2ca5725c1
commit
5cfae571a1
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ public abstract class TabFolderOptionBlock {
|
|||
setCurrentPage((ICOptionPage) pages.get(0));
|
||||
initializingTabs = false;
|
||||
String desc = ((ICOptionPage) pages.get(0)).getDescription();
|
||||
if (desc != null) {
|
||||
if (messageLabel != null && desc != null) {
|
||||
messageLabel.setText(desc);
|
||||
}
|
||||
return composite;
|
||||
|
@ -186,7 +186,7 @@ public abstract class TabFolderOptionBlock {
|
|||
if (ok) {
|
||||
setErrorMessage(null);
|
||||
ICOptionPage tab = getCurrentPage();
|
||||
if (bShowMessageArea) {
|
||||
if (messageLabel != null) {
|
||||
messageLabel.setText(tab.getDescription() != null ? tab.getDescription() : ""); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue