diff --git a/static/js/textPanel.js b/static/js/textPanel.js
index b14ae6134..65f1f33ae 100644
--- a/static/js/textPanel.js
+++ b/static/js/textPanel.js
@@ -101,7 +101,7 @@ pandora.ui.textPanel = function(text, $toolbar) {
}
function getEmbedURLs(text) {
- var matches = text.match(/]*?href="(.+?)".*?>/gi),
+ var matches = text ? text.match(/]*?href="(.+?)".*?>/gi) : [],
urls = [];
if (matches) {
matches.forEach(function(match) {