Permalink
Browse files

Merge pull request #140 from dlandis/master

simple null check before calling nextSibling
  • Loading branch information...
tonytomov committed Jun 29, 2011
2 parents 1b4b0ad + 0a64eb4 commit 2ac714bc045ae25ec3ffbbaf13952baab027138a
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/grid.grouping.js
View
@@ -95,7 +95,7 @@ $.jgrid.extend({
minus = grp.minusicon,
plus = grp.plusicon,
tar = $("#"+hid),
- r = tar[0].nextSibling,
+ r = tar.length ? tar[0].nextSibling : null,
tarspan = $("#"+hid+" span."+"tree-wrap-"+$t.p.direction),
collapsed = false;
if( tarspan.hasClass(minus) ) {

0 comments on commit 2ac714b

Please sign in to comment.