Skip to content

Commit bbcf74f

Browse files
committed
fix @lampholder's NPE for real
1 parent 9664b4d commit bbcf74f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/vector/index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ async function loadApp() {
302302
const theme = configJson.default_theme || 'light';
303303
for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
304304
const href = a.getAttribute("href");
305+
if (!href) continue;
305306
// shouldn't we be using the 'title' tag rather than the href?
306307
const match = href.match(/^bundles\/.*\/theme-(.*)\.css$/);
307308
if (match) {

0 commit comments

Comments
 (0)