Fixes NullPointerException causing disappearing contact list.

cusax-fix
Yana Stamcheva 15 years ago
parent 66beecfcc4
commit 3285adc53c

@ -173,6 +173,10 @@ protected Rectangle getVisibleEditorRect()
{
Rectangle rect = super.getVisibleEditorRect();
// Fixes NullPointerException if the rectangle is null for some reason.
if (rect == null)
return null;
if ((rect.width > 0) && (rect.height > 0))
{
rect.x += searchIcon.getIconWidth() + 8;

Loading…
Cancel
Save