BorderLayoutManager.removeWidget() needs to test for null -
if (mSlots[i].mWidget == widget)
becomes
if (mSlots[i]!=null && mSlots[i].mWidget == widget)
Log in to post a comment.