Permalink
Browse files

check for null which

  • Loading branch information...
1 parent dc5822e commit 818fc180f1b3ecd0fedc5a8b61a36868fb117127 @Randgalt Randgalt committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/nf.js
View
@@ -111,7 +111,7 @@ function showTab(which)
for ( var i = 0; i < tabs.length; ++i )
{
var item = tabs[i];
- if ( which.match(item.code + '.*') )
+ if ( which && which.match(item.code + '.*') )
{
if ( item.handler )
{

0 comments on commit 818fc18

Please sign in to comment.