IDEMPIERE-1653 - java.lang.ArrayIndexOutOfBoundsException when zooming in Swing Client

This commit is contained in:
dantam 2013-12-29 13:08:51 +01:00
parent b3e061afdc
commit f7c94286ff
1 changed files with 1 additions and 1 deletions

View File

@ -1088,7 +1088,7 @@ public final class AEnv
*/
public static void removeWindow (int WindowNo)
{
if (WindowNo < s_windows.size())
if (WindowNo>=0 && WindowNo < s_windows.size())
s_windows.set(WindowNo, null);
} // removeWindow