From bbcf74f774c1db1c8b021b961efbb34406246dc9 Mon Sep 17 00:00:00 2001
From: Matthew Hodgson <matthew@matrix.org>
Date: Wed, 15 Nov 2017 15:55:33 +0000
Subject: [PATCH] fix @lampholder's NPE for real

---
 src/vector/index.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vector/index.js b/src/vector/index.js
index 9987cc45..bd143240 100644
--- a/src/vector/index.js
+++ b/src/vector/index.js
@@ -302,6 +302,7 @@ async function loadApp() {
     const theme = configJson.default_theme || 'light';
     for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
         const href = a.getAttribute("href");
+        if (!href) continue;
         // shouldn't we be using the 'title' tag rather than the href?
         const match = href.match(/^bundles\/.*\/theme-(.*)\.css$/);
         if (match) {