Permalink
Browse files

which might be null

  • Loading branch information...
1 parent 6ab0f70 commit 99f93b9cf8bee89ffbef17628526eefa0590b6ac @Randgalt Randgalt committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/nf.js
View
@@ -387,7 +387,7 @@ function getTabIndex(which)
var index = null;
for ( var i = 0; i < tabs.length; ++i )
{
- if ( which.match(tabs[i].code + '.*') )
+ if ( which && (which.match(tabs[i].code + '.*')) )
{
index = i;
break;

0 comments on commit 99f93b9

Please sign in to comment.