mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Prevent NPE in property change callback
Contributed by STMicroelectronics Change-Id: I7be0660541bfe85cd0c371eddeb7ef14eb2fe75d Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
This commit is contained in:
parent
5e5373982f
commit
96d8c32368
1 changed files with 3 additions and 1 deletions
|
@ -259,7 +259,9 @@ public class BuildConsolePage extends Page
|
|||
setTabs(CUIPlugin.getDefault().getPreferenceStore()
|
||||
.getInt(BuildConsolePreferencePage.PREF_BUILDCONSOLE_TAB_WIDTH));
|
||||
} else if (IConsoleConstants.P_BACKGROUND_COLOR.equals(property)) {
|
||||
fViewer.getTextWidget().setBackground(fConsole.getBackground());
|
||||
if (fViewer != null && fViewer.getTextWidget() != null && fConsole != null) {
|
||||
fViewer.getTextWidget().setBackground(fConsole.getBackground());
|
||||
}
|
||||
} else if (property.equals(BuildConsolePreferencePage.PREF_BUILDCONSOLE_WRAP_LINES)
|
||||
|| property.equals(BuildConsolePreferencePage.PREF_BUILDCONSOLE_LINES)
|
||||
|| property.equals(BuildConsolePreferencePage.PREF_BUILDCONSOLE_WRAP_LINES_MAX)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue