Skip to content

Commit 31f421c

Browse files
committed
Fix: null-check classItem before getData in autofillClassRatings
1 parent e2d57dd commit 31f421c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rater-src/Windows/Components/BannerListWidget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ BannerListWidget.prototype.autofillClassRatings = function(config) {
199199
if (classItem && classItem.getData() && !config.forBannerShell) {
200200
return;
201201
}
202-
if (config.forBannerShell && !banner.isShellTemplate && classItem.getData() === autoClass) {
202+
if (config.forBannerShell && !banner.isShellTemplate && classItem && classItem.getData() === autoClass) {
203203
banner.classDropdown.getMenu().selectItemByData(null);
204204
return;
205205
}

0 commit comments

Comments
 (0)