mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add a null check before using settings editor options (#5756)
This commit is contained in:
@@ -258,6 +258,11 @@ export class SettingsEditor2 extends BaseEditor {
|
||||
}
|
||||
|
||||
private _setOptions(options: SettingsEditorOptions): void {
|
||||
// {{SQL CARBON EDIT}} - return if options is undefined to avoid nullref
|
||||
if (!options) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.query) {
|
||||
this.searchWidget.setValue(options.query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user