Menu

#16 nullpointerexception in borderlayoutmanager.removeWidget

open
nobody
None
5
2012-04-09
2004-07-07
Anonymous
No

BorderLayoutManager.removeWidget() needs to test for
null -

if (mSlots[i].mWidget == widget)

becomes

if (mSlots[i]!=null && mSlots[i].mWidget == widget)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.