Skip to content

Commit

Permalink
fix possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Nov 18, 2013
1 parent 9e20b5d commit 904accb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/wiki/js/wikiPlugin.ts
Expand Up @@ -57,7 +57,7 @@ module Wiki {

a = $(a);

var href = a.attr('href').trim();
var href = (a.attr('href') || "").trim();

// Deal with relative URLs first...
if (href.startsWith('../')) {
Expand Down

0 comments on commit 904accb

Please sign in to comment.